We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5ca7f commit 45d9779Copy full SHA for 45d9779
core/src/panicking.rs
@@ -50,7 +50,7 @@ pub const fn panic(expr: &'static str) -> ! {
50
51
#[inline]
52
#[track_caller]
53
-#[lang = "panic_str"] // needed for `non-fmt-panics` lint
+#[rustc_diagnostic_item = "panic_str"]
54
#[rustc_const_unstable(feature = "core_panic", issue = "none")]
55
pub const fn panic_str(expr: &str) -> ! {
56
panic_display(&expr);
0 commit comments