about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src/lib.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2021-10-16 03:45:14 +0200
committerest31 <MTest31@outlook.com>2021-10-16 07:18:05 +0200
commit1418df5888131578eae04b39360f30df4ffe5599 (patch)
treeb99f38d84066e3c9e52d35e37659e9979b075266 /compiler/rustc_incremental/src/lib.rs
parentc1026539bd22e9d070988deaa47b1360cbc76436 (diff)
downloadrust-1418df5888131578eae04b39360f30df4ffe5599.tar.gz
rust-1418df5888131578eae04b39360f30df4ffe5599.zip
Adopt let_else across the compiler
This performs a substitution of code following the pattern:

let <id> = if let <pat> = ... { identity } else { ... : ! };

To simplify it to:

let <pat> = ... { identity } else { ... : ! };

By adopting the let_else feature.
Diffstat (limited to 'compiler/rustc_incremental/src/lib.rs')
-rw-r--r--compiler/rustc_incremental/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_incremental/src/lib.rs b/compiler/rustc_incremental/src/lib.rs
index f089cbcfca6..dd3f8c937f8 100644
--- a/compiler/rustc_incremental/src/lib.rs
+++ b/compiler/rustc_incremental/src/lib.rs
@@ -2,6 +2,7 @@
 
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
 #![feature(in_band_lifetimes)]
+#![feature(let_else)]
 #![feature(nll)]
 #![recursion_limit = "256"]