reduce rightward-drift
This commit is contained in:
parent
a2d002afe7
commit
cce452d8c8
1 changed files with 2 additions and 3 deletions
|
@ -295,9 +295,8 @@ fn add_unused_functions(cx: &CodegenCx<'_, '_>) {
|
|||
DefKind::Fn | DefKind::AssocFn | DefKind::Closure | DefKind::Generator
|
||||
) {
|
||||
return None;
|
||||
} else if ignore_unused_generics
|
||||
&& tcx.generics_of(def_id).requires_monomorphization(tcx)
|
||||
{
|
||||
}
|
||||
if ignore_unused_generics && tcx.generics_of(def_id).requires_monomorphization(tcx) {
|
||||
return None;
|
||||
}
|
||||
Some(local_def_id.to_def_id())
|
||||
|
|
Loading…
Add table
Reference in a new issue