Rollup merge of #96471 - BoxyUwU:let_else_considered_harmful, r=lcnr
replace let else with `?` r? `@oli-obk`
This commit is contained in:
commit
4c628bbb1c
8 changed files with 16 additions and 29 deletions
|
@ -336,9 +336,7 @@ fn evaluate_candidate<'tcx>(
|
|||
Some(poss)
|
||||
}
|
||||
};
|
||||
let Some((_, child)) = targets.iter().next() else {
|
||||
return None
|
||||
};
|
||||
let (_, child) = targets.iter().next()?;
|
||||
let child_terminator = &bbs[child].terminator();
|
||||
let TerminatorKind::SwitchInt {
|
||||
switch_ty: child_ty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue