diff --git a/rust-version b/rust-version index f1ed3be2ed..d394ab5a7a 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -d4be8efc6296bace5b1e165f1b34d3c6da76aa8e +71ef9ecbdedb67c32f074884f503f8e582855c2f diff --git a/src/lib.rs b/src/lib.rs index 5c8aba6d44..f67a718ba7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,6 @@ #![feature(yeet_expr)] #![feature(nonzero_ops)] #![feature(local_key_cell_methods)] -#![feature(is_terminal)] #![feature(round_ties_even)] // Configure clippy and other lints #![allow( diff --git a/tests/panic/oob_subslice.rs b/tests/panic/oob_subslice.rs new file mode 100644 index 0000000000..4e79b6a99e --- /dev/null +++ b/tests/panic/oob_subslice.rs @@ -0,0 +1,7 @@ +// This once failed with "unwinding past a stack frame that does not allow unwinding", +// fixed by https://github.com/rust-lang/rust/issues/110233. + +fn main() { + let x = [1, 2, 3, 4]; + let _val = &x[..=4]; +} diff --git a/tests/panic/oob_subslice.stderr b/tests/panic/oob_subslice.stderr new file mode 100644 index 0000000000..4c6deaeccf --- /dev/null +++ b/tests/panic/oob_subslice.stderr @@ -0,0 +1,2 @@ +thread 'main' panicked at 'range end index 5 out of range for slice of length 4', $DIR/oob_subslice.rs:LL:CC +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace diff --git a/tests/pass/shims/fs.rs b/tests/pass/shims/fs.rs index 7a9974f393..e379288de0 100644 --- a/tests/pass/shims/fs.rs +++ b/tests/pass/shims/fs.rs @@ -3,7 +3,6 @@ #![feature(io_error_more)] #![feature(io_error_uncategorized)] -#![feature(is_terminal)] use std::collections::HashMap; use std::ffi::{c_char, OsString}; diff --git a/tests/pass/shims/io.rs b/tests/pass/shims/io.rs index 4d43549a93..295723957a 100644 --- a/tests/pass/shims/io.rs +++ b/tests/pass/shims/io.rs @@ -1,5 +1,3 @@ -#![feature(is_terminal)] - use std::io::IsTerminal; fn main() {