We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b152de2 commit 21e5beaCopy full SHA for 21e5bea
compiler/rustc_mir_transform/src/coverage/mod.rs
@@ -366,10 +366,8 @@ fn check_code_region(code_region: CodeRegion) -> Option<CodeRegion> {
366
?is_ordered,
367
"Skipping code region that would be misinterpreted or rejected by LLVM"
368
);
369
- if cfg!(debug_assertions) {
370
- // If this happens in a debug build, ICE to make it easier to notice.
371
- bug!("Improper code region: {code_region:?}");
372
- }
+ // If this happens in a debug build, ICE to make it easier to notice.
+ debug_assert!(false, "Improper code region: {code_region:?}");
373
None
374
}
375
0 commit comments