core: Removed a shadowed, unused definition of debug_assert!.
This commit is contained in:
parent
96a3c7c6a0
commit
556e3da55f
1 changed files with 1 additions and 11 deletions
|
|
@ -61,16 +61,6 @@ macro_rules! assert {
|
|||
);
|
||||
}
|
||||
|
||||
/// Runtime assertion, only without `--cfg ndebug`
|
||||
#[macro_export]
|
||||
macro_rules! debug_assert {
|
||||
($(a:tt)*) => ({
|
||||
if cfg!(not(ndebug)) {
|
||||
assert!($($a)*);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/// Runtime assertion for equality, for details see std::macros
|
||||
#[macro_export]
|
||||
macro_rules! assert_eq {
|
||||
|
|
@ -93,7 +83,7 @@ macro_rules! debug_assert_eq {
|
|||
})
|
||||
}
|
||||
|
||||
/// Runtime assertion, disableable at compile time
|
||||
/// Runtime assertion, disableable at compile time with `--cfg ndebug`
|
||||
#[macro_export]
|
||||
macro_rules! debug_assert {
|
||||
($($arg:tt)*) => (if cfg!(not(ndebug)) { assert!($($arg)*); })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue