Skip to content

Commit 45d9779

Browse files
committed
Take in account the unreachable! macro in the non_fmt_panic lint
1 parent 4a5ca7f commit 45d9779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub const fn panic(expr: &'static str) -> ! {
5050

5151
#[inline]
5252
#[track_caller]
53-
#[lang = "panic_str"] // needed for `non-fmt-panics` lint
53+
#[rustc_diagnostic_item = "panic_str"]
5454
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
5555
pub const fn panic_str(expr: &str) -> ! {
5656
panic_display(&expr);

0 commit comments

Comments
 (0)