Use debug_assert instead of expanded equivalent
This commit is contained in:
parent
b152de29c5
commit
21e5beae3c
1 changed files with 2 additions and 4 deletions
|
@ -366,10 +366,8 @@ fn check_code_region(code_region: CodeRegion) -> Option<CodeRegion> {
|
||||||
?is_ordered,
|
?is_ordered,
|
||||||
"Skipping code region that would be misinterpreted or rejected by LLVM"
|
"Skipping code region that would be misinterpreted or rejected by LLVM"
|
||||||
);
|
);
|
||||||
if cfg!(debug_assertions) {
|
|
||||||
// If this happens in a debug build, ICE to make it easier to notice.
|
// If this happens in a debug build, ICE to make it easier to notice.
|
||||||
bug!("Improper code region: {code_region:?}");
|
debug_assert!(false, "Improper code region: {code_region:?}");
|
||||||
}
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue