Make always-assert crate reusable
This commit is contained in:
@@ -75,15 +75,6 @@ fn setup_logging(log_file: Option<PathBuf>) -> Result<()> {
|
||||
|
||||
profile::init();
|
||||
|
||||
if !cfg!(debug_assertions) {
|
||||
stdx::set_assert_hook(|loc, args| {
|
||||
if env::var("RA_PROFILE").is_ok() {
|
||||
panic!("assertion failed at {}: {}", loc, args)
|
||||
}
|
||||
log::error!("assertion failed at {}: {}", loc, args)
|
||||
});
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user