From 79e1519eeaafacba15bf1c47af6bc447a30cac40 Mon Sep 17 00:00:00 2001 From: est31 Date: Sun, 10 Nov 2024 21:54:48 +0100 Subject: [PATCH] Remove let_chains feature gate from some places in the testsuite --- tests/ui/expr/if/attrs/let-chains-attr.rs | 4 ++-- tests/ui/unpretty/expanded-exhaustive.rs | 1 - tests/ui/unpretty/expanded-exhaustive.stdout | 1 - tests/ui/unpretty/expanded-interpolation.rs | 4 ++-- tests/ui/unpretty/expanded-interpolation.stdout | 7 +++---- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/tests/ui/expr/if/attrs/let-chains-attr.rs b/tests/ui/expr/if/attrs/let-chains-attr.rs index b3dbd53e5798c..c8371de7b4be6 100644 --- a/tests/ui/expr/if/attrs/let-chains-attr.rs +++ b/tests/ui/expr/if/attrs/let-chains-attr.rs @@ -1,6 +1,6 @@ //@ check-pass - -#![feature(let_chains)] +//@ edition:2024 +//@ compile-flags: -Zunstable-options #[cfg(FALSE)] fn foo() { diff --git a/tests/ui/unpretty/expanded-exhaustive.rs b/tests/ui/unpretty/expanded-exhaustive.rs index 799e8071d028a..f9cf9528fda28 100644 --- a/tests/ui/unpretty/expanded-exhaustive.rs +++ b/tests/ui/unpretty/expanded-exhaustive.rs @@ -13,7 +13,6 @@ #![feature(deref_patterns)] #![feature(explicit_tail_calls)] #![feature(gen_blocks)] -#![feature(let_chains)] #![feature(more_qualified_paths)] #![feature(never_patterns)] #![feature(never_type)] diff --git a/tests/ui/unpretty/expanded-exhaustive.stdout b/tests/ui/unpretty/expanded-exhaustive.stdout index d8384951e12f0..f0b4eb6b635c8 100644 --- a/tests/ui/unpretty/expanded-exhaustive.stdout +++ b/tests/ui/unpretty/expanded-exhaustive.stdout @@ -14,7 +14,6 @@ #![feature(deref_patterns)] #![feature(explicit_tail_calls)] #![feature(gen_blocks)] -#![feature(let_chains)] #![feature(more_qualified_paths)] #![feature(never_patterns)] #![feature(never_type)] diff --git a/tests/ui/unpretty/expanded-interpolation.rs b/tests/ui/unpretty/expanded-interpolation.rs index 1dc72c67f511e..92081d3a3b7fb 100644 --- a/tests/ui/unpretty/expanded-interpolation.rs +++ b/tests/ui/unpretty/expanded-interpolation.rs @@ -1,4 +1,5 @@ -//@ compile-flags: -Zunpretty=expanded +//@ compile-flags: -Zunpretty=expanded -Zunstable-options +//@ edition:2024 //@ check-pass // This test covers the AST pretty-printer's insertion of parentheses in some @@ -7,7 +8,6 @@ // Rust syntax. We also test negative cases: the pretty-printer should not be // synthesizing parentheses indiscriminately; only where necessary. -#![feature(let_chains)] #![feature(if_let_guard)] macro_rules! expr { diff --git a/tests/ui/unpretty/expanded-interpolation.stdout b/tests/ui/unpretty/expanded-interpolation.stdout index 556e57dbd9210..94e26e0424c05 100644 --- a/tests/ui/unpretty/expanded-interpolation.stdout +++ b/tests/ui/unpretty/expanded-interpolation.stdout @@ -1,6 +1,6 @@ #![feature(prelude_import)] -#![no_std] -//@ compile-flags: -Zunpretty=expanded +//@ compile-flags: -Zunpretty=expanded -Zunstable-options +//@ edition:2024 //@ check-pass // This test covers the AST pretty-printer's insertion of parentheses in some @@ -9,10 +9,9 @@ // Rust syntax. We also test negative cases: the pretty-printer should not be // synthesizing parentheses indiscriminately; only where necessary. -#![feature(let_chains)] #![feature(if_let_guard)] #[prelude_import] -use ::std::prelude::rust_2015::*; +use std::prelude::rust_2024::*; #[macro_use] extern crate std;