Formally implement let chains
This commit is contained in:
parent
9ad5d82f82
commit
5f74ef4fb1
31 changed files with 536 additions and 340 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue