Skip to content

Commit 21e5bea

Browse files
authored
Use debug_assert instead of expanded equivalent
1 parent b152de2 commit 21e5bea

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_mir_transform/src/coverage

1 file changed

+2
-4
lines changed

compiler/rustc_mir_transform/src/coverage/mod.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,8 @@ fn check_code_region(code_region: CodeRegion) -> Option<CodeRegion> {
366366
?is_ordered,
367367
"Skipping code region that would be misinterpreted or rejected by LLVM"
368368
);
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-
}
369+
// If this happens in a debug build, ICE to make it easier to notice.
370+
debug_assert!(false, "Improper code region: {code_region:?}");
373371
None
374372
}
375373
}

0 commit comments

Comments
 (0)