Skip to content

Commit 1fdc7e3

Browse files
authored
Merge pull request #183 from epage/docs
docs: Don't enable nightly feature for docs.rs
2 parents e9ec8a0 + 7c81b00 commit 1fdc7e3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ rust-version.workspace = true
104104
include.workspace = true
105105

106106
[package.metadata.docs.rs]
107-
all-features = true
107+
features = ["unstable-doc"]
108108
rustdoc-args = ["--generate-link-to-definition"]
109109

110110
[package.metadata.release]
@@ -120,6 +120,7 @@ pre-release-replacements = [
120120
default = ["color"]
121121
nightly = []
122122
color = ["dep:anstyle", "dep:anstream"]
123+
unstable-doc = ["default"]
123124

124125
[dependencies]
125126
anstyle = { version = "1.0.0", optional = true }

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)