Skip to content

Commit a776e39

Browse files
committed
Make panic_fmt lint work properly for assert!(expr, msg) too.
1 parent 521135a commit a776e39

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
@@ -1216,6 +1216,7 @@ pub(crate) mod builtin {
12161216
#[stable(feature = "rust1", since = "1.0.0")]
12171217
#[rustc_builtin_macro]
12181218
#[macro_export]
1219+
#[rustc_diagnostic_item = "assert_macro"]
12191220
macro_rules! assert {
12201221
($cond:expr $(,)?) => {{ /* compiler built-in */ }};
12211222
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};

0 commit comments

Comments
 (0)