File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ rust-version.workspace = true
104104include.workspace = true
105105
106106[package .metadata .docs .rs ]
107- all- features = true
107+ features = [ " unstable-doc " ]
108108rustdoc-args = [" --generate-link-to-definition" ]
109109
110110[package .metadata .release ]
@@ -120,6 +120,7 @@ pre-release-replacements = [
120120default = [" color" ]
121121nightly = []
122122color = [" dep:anstyle" , " dep:anstream" ]
123+ unstable-doc = [" default" ]
123124
124125[dependencies ]
125126anstyle = { version = " 1.0.0" , optional = true }
Original file line number Diff line number Diff line change 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>>(
277276pub 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 > ( ) ,
You can’t perform that action at this time.
0 commit comments