File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 1414//! library. Each macro is available for use when linking against the standard
1515//! library.
1616
17- /// The entry point for panic of Rust threads.
18- ///
19- /// This macro is used to inject panic into a Rust thread, causing the thread to
20- /// unwind and panic entirely. Each thread's panic can be reaped as the
21- /// `Box<Any>` type, and the single-argument form of the `panic!` macro will be
22- /// the value which is transmitted.
23- ///
24- /// The multi-argument form of this macro panics with a string and has the
25- /// `format!` syntax for building a string.
26- ///
27- /// # Examples
28- ///
29- /// ```should_panic
30- /// # #![allow(unreachable_code)]
31- /// panic!();
32- /// panic!("this is a terrible mistake!");
33- /// panic!(4); // panic with the value of 4 to be collected elsewhere
34- /// panic!("this is a {} {message}", "fancy", message = "message");
35- /// ```
36- #[ macro_export]
37- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
38- #[ allow_internal_unstable]
3917/// The entry point for panic of Rust threads.
4018///
4119/// This macro is used to inject panic into a Rust thread, causing the thread to
You can’t perform that action at this time.
0 commit comments