Skip to content

Commit 9655426

Browse files
committed
Also apply panic_fmt lint suggestions to debug_assert!().
1 parent 0998745 commit 9655426

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/macros/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ macro_rules! assert_ne {
163163
/// ```
164164
#[macro_export]
165165
#[stable(feature = "rust1", since = "1.0.0")]
166+
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "debug_assert_macro")]
166167
macro_rules! debug_assert {
167168
($($arg:tt)*) => (if $crate::cfg!(debug_assertions) { $crate::assert!($($arg)*); })
168169
}

0 commit comments

Comments
 (0)