summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2022-02-27 07:07:36 +0100
committerest31 <MTest31@outlook.com>2022-09-15 21:06:45 +0200
commit173eb6f407438dff732b1636b5134ff220da3f5b (patch)
treec307dd52fb7849169852f5364b237e796b4fc7ec /library/std/src
parent5633e863bd9b6130be0bef3ffceb6e1bca0ebb56 (diff)
downloadrust-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 'library/std/src')
-rw-r--r--library/std/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index f13500de014..bc4f1b27c2a 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -255,7 +255,7 @@
 #![cfg_attr(bootstrap, feature(label_break_value))]
 #![feature(lang_items)]
 #![feature(let_chains)]
-#![feature(let_else)]
+#![cfg_attr(bootstrap, feature(let_else))]
 #![feature(linkage)]
 #![feature(link_cfg)]
 #![feature(min_specialization)]