1
Fork 0

Formally implement let chains

This commit is contained in:
Caio 2022-01-18 19:38:17 -03:00
parent 9ad5d82f82
commit 5f74ef4fb1
31 changed files with 536 additions and 340 deletions

View file

@ -707,11 +707,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session) {
"`if let` guards are experimental",
"you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`"
);
gate_all!(
let_chains,
"`let` expressions in this position are experimental",
"you can write `matches!(<expr>, <pattern>)` instead of `let <pattern> = <expr>`"
);
gate_all!(let_chains, "`let` expressions in this position are unstable");
gate_all!(
async_closure,
"async closures are unstable",