Skip to content

Commit cce452d

Browse files
committed
reduce rightward-drift
1 parent a2d002a commit cce452d

File tree

1 file changed

+2
-3
lines changed
  • compiler/rustc_codegen_llvm/src/coverageinfo

1 file changed

+2
-3
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,8 @@ fn add_unused_functions(cx: &CodegenCx<'_, '_>) {
295295
DefKind::Fn | DefKind::AssocFn | DefKind::Closure | DefKind::Generator
296296
) {
297297
return None;
298-
} else if ignore_unused_generics
299-
&& tcx.generics_of(def_id).requires_monomorphization(tcx)
300-
{
298+
}
299+
if ignore_unused_generics && tcx.generics_of(def_id).requires_monomorphization(tcx) {
301300
return None;
302301
}
303302
Some(local_def_id.to_def_id())

0 commit comments

Comments
 (0)