File tree 1 file changed +0
-22
lines changed
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 14
14
//! library. Each macro is available for use when linking against the standard
15
15
//! library.
16
16
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]
39
17
/// The entry point for panic of Rust threads.
40
18
///
41
19
/// 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