Skip to content

Commit 79e1519

Browse files
committed
Remove let_chains feature gate from some places in the testsuite
1 parent e4e0f0b commit 79e1519

5 files changed

+7
-10
lines changed

tests/ui/expr/if/attrs/let-chains-attr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ check-pass
2-
3-
#![feature(let_chains)]
2+
//@ edition:2024
3+
//@ compile-flags: -Zunstable-options
44

55
#[cfg(FALSE)]
66
fn foo() {

tests/ui/unpretty/expanded-exhaustive.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![feature(deref_patterns)]
1414
#![feature(explicit_tail_calls)]
1515
#![feature(gen_blocks)]
16-
#![feature(let_chains)]
1716
#![feature(more_qualified_paths)]
1817
#![feature(never_patterns)]
1918
#![feature(never_type)]

tests/ui/unpretty/expanded-exhaustive.stdout

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![feature(deref_patterns)]
1515
#![feature(explicit_tail_calls)]
1616
#![feature(gen_blocks)]
17-
#![feature(let_chains)]
1817
#![feature(more_qualified_paths)]
1918
#![feature(never_patterns)]
2019
#![feature(never_type)]

tests/ui/unpretty/expanded-interpolation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//@ compile-flags: -Zunpretty=expanded
1+
//@ compile-flags: -Zunpretty=expanded -Zunstable-options
2+
//@ edition:2024
23
//@ check-pass
34

45
// This test covers the AST pretty-printer's insertion of parentheses in some
@@ -7,7 +8,6 @@
78
// Rust syntax. We also test negative cases: the pretty-printer should not be
89
// synthesizing parentheses indiscriminately; only where necessary.
910

10-
#![feature(let_chains)]
1111
#![feature(if_let_guard)]
1212

1313
macro_rules! expr {

tests/ui/unpretty/expanded-interpolation.stdout

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![feature(prelude_import)]
2-
#![no_std]
3-
//@ compile-flags: -Zunpretty=expanded
2+
//@ compile-flags: -Zunpretty=expanded -Zunstable-options
3+
//@ edition:2024
44
//@ check-pass
55

66
// This test covers the AST pretty-printer's insertion of parentheses in some
@@ -9,10 +9,9 @@
99
// Rust syntax. We also test negative cases: the pretty-printer should not be
1010
// synthesizing parentheses indiscriminately; only where necessary.
1111

12-
#![feature(let_chains)]
1312
#![feature(if_let_guard)]
1413
#[prelude_import]
15-
use ::std::prelude::rust_2015::*;
14+
use std::prelude::rust_2024::*;
1615
#[macro_use]
1716
extern crate std;
1817

0 commit comments

Comments
 (0)