diff options
| author | Andy Caldwell <andycaldwell@microsoft.com> | 2023-08-09 15:57:16 +0100 |
|---|---|---|
| committer | Andy Caldwell <andycaldwell@microsoft.com> | 2023-09-08 12:46:06 +0100 |
| commit | 8e03371fc3209b8b91989b108314e35f471d6b89 (patch) | |
| tree | e6daf752e96622b474af111105c489a8ebe9de22 /compiler/rustc_codegen_llvm/src | |
| parent | de4cba3a98a15a891ad708a049c7fb5682083d97 (diff) | |
| download | rust-8e03371fc3209b8b91989b108314e35f471d6b89.tar.gz rust-8e03371fc3209b8b91989b108314e35f471d6b89.zip | |
Rework no_coverage to coverage(off)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs index 97a99e51056..f0ed0a9d1b8 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs @@ -317,10 +317,10 @@ fn add_unused_functions(cx: &CodegenCx<'_, '_>) { { let codegen_fn_attrs = tcx.codegen_fn_attrs(non_codegenned_def_id); - // If a function is marked `#[no_coverage]`, then skip generating a + // If a function is marked `#[coverage(off)]`, then skip generating a // dead code stub for it. if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::NO_COVERAGE) { - debug!("skipping unused fn marked #[no_coverage]: {:?}", non_codegenned_def_id); + debug!("skipping unused fn marked #[coverage(off)]: {:?}", non_codegenned_def_id); continue; } |
