From cc30826669626ef04ba17c14e94b2c98aeef698d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 7 Jul 2022 23:45:47 -0700 Subject: [PATCH] Unexport __assert macro --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bde3102..70cca54 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -162,7 +162,6 @@ pub mod externs { } } - #[macro_export] macro_rules! __assert { (false $(,)?) => { $crate::externs::__assert_fail(stringify!(false), file!(), line!()) @@ -174,7 +173,11 @@ pub mod externs { }; } - pub unsafe fn __assert_fail(__assertion: &'static str, __file: &'static str, __line: u32) -> ! { + pub(crate) unsafe fn __assert_fail( + __assertion: &'static str, + __file: &'static str, + __line: u32, + ) -> ! { struct Abort; impl Drop for Abort { fn drop(&mut self) {