Skip to content

Commit 7c81b00

Browse files
committed
fix: Remove stale nightly implementation
1 parent 55acb2b commit 7c81b00

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
//!
4141
//! Thank you kindly!
4242
43-
#![cfg_attr(feature = "nightly", feature(panic_info_message))]
4443
#![cfg_attr(docsrs, feature(doc_cfg))]
4544
#![warn(clippy::print_stderr)]
4645
#![warn(clippy::print_stdout)]
@@ -277,10 +276,6 @@ fn write_msg<P: AsRef<Path>>(
277276
pub fn handle_dump(meta: &Metadata, panic_info: &PanicInfo<'_>) -> Option<PathBuf> {
278277
let mut expl = String::new();
279278

280-
#[cfg(feature = "nightly")]
281-
let message = panic_info.message().map(|m| format!("{}", m));
282-
283-
#[cfg(not(feature = "nightly"))]
284279
let message = match (
285280
panic_info.payload().downcast_ref::<&str>(),
286281
panic_info.payload().downcast_ref::<String>(),

0 commit comments

Comments
 (0)