diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-19 21:53:10 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-12-19 22:03:43 +1100 |
| commit | aced4dcf1047aab08b769b34fae9d4ba7de87f04 (patch) | |
| tree | 40131ad1857c729b5bf690ba554fdfee4e43eb31 /compiler/rustc_interface/src/tests.rs | |
| parent | 837a25dd41a1cc58cee093159a01f73719f330e8 (diff) | |
| download | rust-aced4dcf1047aab08b769b34fae9d4ba7de87f04.tar.gz rust-aced4dcf1047aab08b769b34fae9d4ba7de87f04.zip | |
coverage: Add a synthetic test for when all spans are discarded
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index d103f7f45e2..9ad69039914 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -766,7 +766,11 @@ fn test_unstable_options_tracking_hash() { }) ); tracked!(codegen_backend, Some("abc".to_string())); - tracked!(coverage_options, CoverageOptions { level: CoverageLevel::Mcdc, no_mir_spans: true }); + tracked!(coverage_options, CoverageOptions { + level: CoverageLevel::Mcdc, + no_mir_spans: true, + discard_all_spans_in_codegen: true + }); tracked!(crate_attr, vec!["abc".to_string()]); tracked!(cross_crate_inline_threshold, InliningThreshold::Always); tracked!(debug_info_for_profiling, true); |
