Skip to content

Commit

Permalink
Rollup merge of #107347 - tshepang:rightward-drift, r=Nilstrieb
Browse files Browse the repository at this point in the history
reduce rightward-drift
  • Loading branch information
JohnTitor committed Jan 27, 2023
2 parents 1e0cf72 + cce452d commit b247253
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit b247253

Please sign in to comment.