diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-06-27 15:25:15 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-06-27 15:25:20 +0200 |
| commit | ca0601a1c23793dd4ad3f65441dd1064f1b47545 (patch) | |
| tree | 141d931a9cad4d566b2e5b9197a7b002a186ab78 /src/libstd | |
| parent | 912ab64a0de2c121a1c9f10bb1dbe75983b78c73 (diff) | |
| download | rust-ca0601a1c23793dd4ad3f65441dd1064f1b47545.tar.gz rust-ca0601a1c23793dd4ad3f65441dd1064f1b47545.zip | |
std: someone missed removing this doc and the annotations
Should have happened in 69abc12b0044d641e714bdd73a299cfa4136b7b8
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 02c35e9526d..697b934c676 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -36,28 +36,6 @@ #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] #[allow_internal_unstable] -/// The entry point for panic of Rust threads. -/// -/// This macro is used to inject panic into a Rust thread, causing the thread to -/// unwind and panic entirely. Each thread's panic can be reaped as the -/// `Box<Any>` type, and the single-argument form of the `panic!` macro will be -/// the value which is transmitted. -/// -/// The multi-argument form of this macro panics with a string and has the -/// `format!` syntax for building a string. -/// -/// # Examples -/// -/// ```should_panic -/// # #![allow(unreachable_code)] -/// panic!(); -/// panic!("this is a terrible mistake!"); -/// panic!(4); // panic with the value of 4 to be collected elsewhere -/// panic!("this is a {} {message}", "fancy", message = "message"); -/// ``` -#[macro_export] -#[stable(feature = "rust1", since = "1.0.0")] -#[allow_internal_unstable] macro_rules! panic { () => ({ panic!("explicit panic") |
