let mut locals_to_debuginfo = BitSet::new_empty(body.local_decls.len());
for debuginfo in &body.var_debug_info {
- if let VarDebugInfoContents::Place(p) = debuginfo.value {
- if let Some(l) = p.as_local() {
- locals_to_debuginfo.insert(l);
- }
+ if let VarDebugInfoContents::Place(p) = debuginfo.value && let Some(l) = p.as_local() {
+ locals_to_debuginfo.insert(l);
}
}