diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-14 15:27:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-14 15:27:20 +0000 |
commit | 540edee3cd11d45a03abc072bb9b6f01b59bcb25 (patch) | |
tree | 7d86fca4364984808724ccc5694aef20a43d686c /crates/stdx/src/lib.rs | |
parent | aeacaeed4e49dd71ba0de30a21d9f3d1cc153cec (diff) | |
parent | 8dc68ecdfcc764c7c0dcf5fcedcb51b092d99620 (diff) |
Merge #7270
7270: Introduce more appropriate assertion mechanism r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/stdx/src/lib.rs')
-rw-r--r-- | crates/stdx/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs index d9a62e943..1ff2559bb 100644 --- a/crates/stdx/src/lib.rs +++ b/crates/stdx/src/lib.rs | |||
@@ -4,6 +4,8 @@ use std::{cmp::Ordering, ops, process, time::Instant}; | |||
4 | mod macros; | 4 | mod macros; |
5 | pub mod panic_context; | 5 | pub mod panic_context; |
6 | 6 | ||
7 | pub use crate::macros::{on_assert_failure, set_assert_hook}; | ||
8 | |||
7 | #[inline(always)] | 9 | #[inline(always)] |
8 | pub fn is_ci() -> bool { | 10 | pub fn is_ci() -> bool { |
9 | option_env!("CI").is_some() | 11 | option_env!("CI").is_some() |