diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-01-27 07:52:44 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2023-01-27 07:52:44 +0200 |
| commit | cce452d8c89ce69002bdafb3cbca83d86203d55c (patch) | |
| tree | fb07e4ac85b669e6d7730024c66970ae689d0150 /compiler/rustc_codegen_llvm | |
| parent | a2d002afe70015f621771d00c9cb4fe115f8cb11 (diff) | |
| download | rust-cce452d8c89ce69002bdafb3cbca83d86203d55c.tar.gz rust-cce452d8c89ce69002bdafb3cbca83d86203d55c.zip | |
reduce rightward-drift
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs index d9a73c7a5c9..240a9d2f371 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs @@ -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()) |
