Skip to content

Commit

Permalink
Remove let_chains feature gate from some places in the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Nov 29, 2024
1 parent 7522a03 commit 7fc579d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions tests/ui/expr/if/attrs/let-chains-attr.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ check-pass

#![feature(let_chains)]
//@ edition:2024

#[cfg(FALSE)]
fn foo() {
Expand Down
1 change: 0 additions & 1 deletion tests/ui/unpretty/expanded-exhaustive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/unpretty/expanded-exhaustive.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unpretty/expanded-interpolation.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@ compile-flags: -Zunpretty=expanded
//@ edition:2024
//@ check-pass

// This test covers the AST pretty-printer's insertion of parentheses in some
Expand All @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions tests/ui/unpretty/expanded-interpolation.stdout
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![feature(prelude_import)]
#![no_std]
//@ compile-flags: -Zunpretty=expanded
//@ edition:2024
//@ check-pass

// This test covers the AST pretty-printer's insertion of parentheses in some
Expand All @@ -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;

Expand Down

0 comments on commit 7fc579d

Please sign in to comment.