Skip to content

Commit b1b162f

Browse files
authored
Merge pull request #1358 from asomers/rust_1.40.0
Raise MSRV to 1.40.0
2 parents d922c72 + d87e6b2 commit b1b162f

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.cirrus.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ task:
1212
image: freebsd-11-4-release-amd64
1313
setup_script:
1414
- fetch https://sh.rustup.rs -o rustup.sh
15-
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
15+
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
1616
- $HOME/.cargo/bin/rustup target add i686-unknown-freebsd
1717
amd64_test_script:
1818
- . $HOME/.cargo/env
@@ -42,7 +42,7 @@ task:
4242
image: catalina-xcode
4343
setup_script:
4444
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
45-
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
45+
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
4646
- . $HOME/.cargo/env
4747
- bash ci/install.sh
4848
script:
@@ -92,7 +92,7 @@ docker_builder:
9292
setup_script:
9393
- mkdir /tmp/home
9494
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
95-
- sh rustup.sh -y --profile=minimal --default-toolchain 1.36.0
95+
- sh rustup.sh -y --profile=minimal --default-toolchain 1.40.0
9696
- . $HOME/.cargo/env
9797
- bash ci/install.sh
9898
script:
@@ -110,11 +110,11 @@ task:
110110
- name: Linux x86_64
111111
env:
112112
TARGET: x86_64-unknown-linux-gnu
113-
TOOLCHAIN: 1.36.0
113+
TOOLCHAIN: 1.40.0
114114
- name: Linux x86_64 musl
115115
env:
116116
TARGET: x86_64-unknown-linux-musl
117-
TOOLCHAIN: 1.36.0
117+
TOOLCHAIN: 1.40.0
118118
container:
119119
image: rust:1.36
120120
setup_script:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Changed
1212

13+
- Minimum supported Rust version is now 1.40.0.
14+
([#1356](https://github.com/nix-rust/nix/pull/1356))
15+
1316
- i686-apple-darwin has been demoted to Tier 2 support, because it's deprecated
1417
by Xcode.
1518
(#[1350](https://github.com/nix-rust/nix/pull/1350))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Tier 3:
8585

8686
## Usage
8787

88-
`nix` requires Rust 1.36.0 or newer.
88+
`nix` requires Rust 1.40.0 or newer.
8989

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

test/sys/test_aio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ fn test_fsync_error() {
137137
// in Travis's version of glibc or Linux. Either way, we must skip the test.
138138
// https://github.com/nix-rust/nix/issues/1099
139139
#[cfg_attr(target_os = "linux", ignore)]
140+
// On Cirrus, aio_suspend is failing with EINVAL
141+
// https://github.com/nix-rust/nix/issues/1361
142+
#[cfg_attr(target_os = "macos", ignore)]
140143
fn test_aio_suspend() {
141144
const INITIAL: &[u8] = b"abcdef123456";
142145
const WBUF: &[u8] = b"CDEFG";

test/test_unistd.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,13 +1064,7 @@ fn test_ttyname_not_pty() {
10641064
}
10651065

10661066
#[test]
1067-
#[cfg(all(not(target_os = "redox"), not(target_env = "musl")))]
1067+
#[cfg(all(not(target_os = "redox")))]
10681068
fn test_ttyname_invalid_fd() {
10691069
assert_eq!(ttyname(-1), Err(Error::Sys(Errno::EBADF)));
10701070
}
1071-
1072-
#[test]
1073-
#[cfg(all(not(target_os = "redox"), target_env = "musl"))]
1074-
fn test_ttyname_invalid_fd() {
1075-
assert_eq!(ttyname(-1), Err(Error::Sys(Errno::ENOTTY)));
1076-
}

0 commit comments

Comments
 (0)