mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-18 16:20:18 +00:00
Make always-assert crate reusable
This commit is contained in:
parent
2664aee8e5
commit
d35bda6429
11 changed files with 24 additions and 73 deletions
|
@ -4,7 +4,7 @@ use std::{cmp::Ordering, ops, process, time::Instant};
|
|||
mod macros;
|
||||
pub mod panic_context;
|
||||
|
||||
pub use crate::macros::{on_assert_failure, set_assert_hook};
|
||||
pub use always_assert::{always, never};
|
||||
|
||||
#[inline(always)]
|
||||
pub fn is_ci() -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue