diff options
| author | est31 <MTest31@outlook.com> | 2022-02-27 07:07:36 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-09-15 21:06:45 +0200 |
| commit | 173eb6f407438dff732b1636b5134ff220da3f5b (patch) | |
| tree | c307dd52fb7849169852f5364b237e796b4fc7ec /compiler/rustc_ast_passes/src/lib.rs | |
| parent | 5633e863bd9b6130be0bef3ffceb6e1bca0ebb56 (diff) | |
| download | rust-173eb6f407438dff732b1636b5134ff220da3f5b.tar.gz rust-173eb6f407438dff732b1636b5134ff220da3f5b.zip | |
Only enable the let_else feature on bootstrap
On later stages, the feature is already stable. Result of running: rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
Diffstat (limited to 'compiler/rustc_ast_passes/src/lib.rs')
| -rw-r--r-- | compiler/rustc_ast_passes/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_passes/src/lib.rs b/compiler/rustc_ast_passes/src/lib.rs index af25982e288..8aa9d57f046 100644 --- a/compiler/rustc_ast_passes/src/lib.rs +++ b/compiler/rustc_ast_passes/src/lib.rs @@ -9,7 +9,7 @@ #![feature(if_let_guard)] #![feature(iter_is_partitioned)] #![feature(let_chains)] -#![feature(let_else)] +#![cfg_attr(bootstrap, feature(let_else))] #![recursion_limit = "256"] #[macro_use] |
