Use let_else in even more places
This commit is contained in:
parent
9ad5d82f82
commit
b2dd1377c7
9 changed files with 134 additions and 140 deletions
|
@ -1493,7 +1493,7 @@ fn generator_layout_and_saved_local_names<'tcx>(
|
|||
|
||||
let state_arg = mir::Local::new(1);
|
||||
for var in &body.var_debug_info {
|
||||
let place = if let mir::VarDebugInfoContents::Place(p) = var.value { p } else { continue };
|
||||
let mir::VarDebugInfoContents::Place(place) = &var.value else { continue };
|
||||
if place.local != state_arg {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||
#![feature(bool_to_option)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(let_else)]
|
||||
#![feature(extern_types)]
|
||||
#![feature(nll)]
|
||||
#![recursion_limit = "256"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue