Skip to content

Commit

Permalink
Merge pull request #1358 from asomers/rust_1.40.0
Browse files Browse the repository at this point in the history
Raise MSRV to 1.40.0
  • Loading branch information
asomers authored Dec 15, 2020
2 parents d922c72 + d87e6b2 commit b1b162f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ task:
image: freebsd-11-4-release-amd64
setup_script:
- fetch https://sh.rustup.rs -o rustup.sh
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
- $HOME/.cargo/bin/rustup target add i686-unknown-freebsd
amd64_test_script:
- . $HOME/.cargo/env
Expand Down Expand Up @@ -42,7 +42,7 @@ task:
image: catalina-xcode
setup_script:
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
- . $HOME/.cargo/env
- bash ci/install.sh
script:
Expand Down Expand Up @@ -92,7 +92,7 @@ docker_builder:
setup_script:
- mkdir /tmp/home
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
- . $HOME/.cargo/env
- bash ci/install.sh
script:
Expand All @@ -110,11 +110,11 @@ task:
- name: Linux x86_64
env:
TARGET: x86_64-unknown-linux-gnu
TOOLCHAIN: 1.36.0
TOOLCHAIN: 1.40.0
- name: Linux x86_64 musl
env:
TARGET: x86_64-unknown-linux-musl
TOOLCHAIN: 1.36.0
TOOLCHAIN: 1.40.0
container:
image: rust:1.36
setup_script:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Changed

- Minimum supported Rust version is now 1.40.0.
([#1356](https://github.com/nix-rust/nix/pull/1356))

- i686-apple-darwin has been demoted to Tier 2 support, because it's deprecated
by Xcode.
(#[1350](https://github.com/nix-rust/nix/pull/1350))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Tier 3:

## Usage

`nix` requires Rust 1.36.0 or newer.
`nix` requires Rust 1.40.0 or newer.

To use `nix`, add this to your `Cargo.toml`:

Expand Down
3 changes: 3 additions & 0 deletions test/sys/test_aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ fn test_fsync_error() {
// in Travis's version of glibc or Linux. Either way, we must skip the test.
// https://github.com/nix-rust/nix/issues/1099
#[cfg_attr(target_os = "linux", ignore)]
// On Cirrus, aio_suspend is failing with EINVAL
// https://github.com/nix-rust/nix/issues/1361
#[cfg_attr(target_os = "macos", ignore)]
fn test_aio_suspend() {
const INITIAL: &[u8] = b"abcdef123456";
const WBUF: &[u8] = b"CDEFG";
Expand Down
8 changes: 1 addition & 7 deletions test/test_unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,13 +1064,7 @@ fn test_ttyname_not_pty() {
}

#[test]
#[cfg(all(not(target_os = "redox"), not(target_env = "musl")))]
#[cfg(all(not(target_os = "redox")))]
fn test_ttyname_invalid_fd() {
assert_eq!(ttyname(-1), Err(Error::Sys(Errno::EBADF)));
}

#[test]
#[cfg(all(not(target_os = "redox"), target_env = "musl"))]
fn test_ttyname_invalid_fd() {
assert_eq!(ttyname(-1), Err(Error::Sys(Errno::ENOTTY)));
}

0 comments on commit b1b162f

Please sign in to comment.