Skip to content

Commit b247253

Browse files
authored
Rollup merge of #107347 - tshepang:rightward-drift, r=Nilstrieb
reduce rightward-drift
2 parents 1e0cf72 + cce452d commit b247253

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)