1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Description: avoid nightly-only hints
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1111750
Forwarded: not-needed
Last-Update: 2025-08-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -40,8 +40,6 @@
//!
//! Thank you kindly!
-#![cfg_attr(feature = "nightly", feature(panic_info_message))]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)]
@@ -277,10 +275,6 @@
pub fn handle_dump(meta: &Metadata, panic_info: &PanicInfo<'_>) -> Option<PathBuf> {
let mut expl = String::new();
- #[cfg(feature = "nightly")]
- let message = panic_info.message().map(|m| format!("{}", m));
-
- #[cfg(not(feature = "nightly"))]
let message = match (
panic_info.payload().downcast_ref::<&str>(),
panic_info.payload().downcast_ref::<String>(),
|