We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e0cf72 + cce452d commit b247253Copy full SHA for b247253
compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
@@ -295,9 +295,8 @@ fn add_unused_functions(cx: &CodegenCx<'_, '_>) {
295
DefKind::Fn | DefKind::AssocFn | DefKind::Closure | DefKind::Generator
296
) {
297
return None;
298
- } else if ignore_unused_generics
299
- && tcx.generics_of(def_id).requires_monomorphization(tcx)
300
- {
+ }
+ if ignore_unused_generics && tcx.generics_of(def_id).requires_monomorphization(tcx) {
301
302
}
303
Some(local_def_id.to_def_id())
0 commit comments