diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-09 20:57:17 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-05-10 00:24:03 +1000 |
| commit | 078144fdfa7ae627d43cd919d660a71bef1e4658 (patch) | |
| tree | 8188e89378f1b0055d8d572cd8a037bb0f74e5e2 /compiler/rustc_interface/src/tests.rs | |
| parent | 8cd8b23b9e4b1f05373831644b005b21a13a9c69 (diff) | |
| download | rust-078144fdfa7ae627d43cd919d660a71bef1e4658.tar.gz rust-078144fdfa7ae627d43cd919d660a71bef1e4658.zip | |
coverage: Detect unused local file IDs to avoid an LLVM assertion
This case can't actually happen yet (other than via a testing flag), because currently all of a function's spans must belong to the same file and expansion. But this will be an important edge case when adding expansion region support.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 0ceda220134..8bcd0453624 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -776,7 +776,8 @@ fn test_unstable_options_tracking_hash() { CoverageOptions { level: CoverageLevel::Mcdc, no_mir_spans: true, - discard_all_spans_in_codegen: true + discard_all_spans_in_codegen: true, + inject_unused_local_file: true, } ); tracked!(crate_attr, vec!["abc".to_string()]); |
