diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-12 06:58:43 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-12 06:58:43 -0600 |
| commit | 500518ab7228aef2de33201857e135487bd40edc (patch) | |
| tree | 8773263e71679031e0d9167dd7a57b264cbdc052 /src/libstd/macros.rs | |
| parent | 8bba5ad3098e3f20ab3c506e5a421df5da010df9 (diff) | |
| parent | 133c1bc9ac998d22a0028d2f2e15473f0d1d08ab (diff) | |
| download | rust-500518ab7228aef2de33201857e135487bd40edc.tar.gz rust-500518ab7228aef2de33201857e135487bd40edc.zip | |
Rollup merge of #42670 - dns2utf8:panic_return_code, r=steveklabnik
Add hint about the return code of panic! I hope the link works on all cases, since the `unreachable` doc is copied to `std::` as well.
Diffstat (limited to 'src/libstd/macros.rs')
| -rw-r--r-- | src/libstd/macros.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 6eb9faacf7f..6ad22820a7d 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -24,6 +24,11 @@ /// The multi-argument form of this macro panics with a string and has the /// `format!` syntax for building a string. /// +/// # Current implementation +/// +/// If the main thread panics it will terminate all your threads and end your +/// program with code `101`. +/// /// # Examples /// /// ```should_panic |
