We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d002a commit cce452dCopy full SHA for cce452d
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