Adopt let_else in even more places
This commit is contained in:
parent
3cfa4def7c
commit
60f969a4f2
26 changed files with 50 additions and 104 deletions
|
@ -947,9 +947,7 @@ fn visit_instance_use<'tcx>(
|
|||
/// Returns `true` if we should codegen an instance in the local crate, or returns `false` if we
|
||||
/// can just link to the upstream crate and therefore don't need a mono item.
|
||||
fn should_codegen_locally<'tcx>(tcx: TyCtxt<'tcx>, instance: &Instance<'tcx>) -> bool {
|
||||
let def_id = if let Some(def_id) = instance.def.def_id_if_not_guaranteed_local_codegen() {
|
||||
def_id
|
||||
} else {
|
||||
let Some(def_id) = instance.def.def_id_if_not_guaranteed_local_codegen() else {
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue