From 84b880d55e5b154d9649107ac583de7591a81823 Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Thu, 15 Jun 2017 11:36:32 +0200 Subject: [PATCH 1/4] Add hint about the return code of panic! --- src/libcore/macros.rs | 2 +- src/libstd/macros.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index d68fad4972c68..537d925c8fa7c 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -456,7 +456,7 @@ macro_rules! writeln { /// /// # Panics /// -/// This will always panic. +/// This will always [panic!](macro.panic.html). /// /// # Examples /// diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index df3fce0da765d..547e840ffb7f3 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -24,6 +24,8 @@ /// The multi-argument form of this macro panics with a string and has the /// `format!` syntax for building a string. /// +/// If the main thread panics it will return with code `101`. +/// /// # Examples /// /// ```should_panic From d5390573ba468d4f1d06bf4f3ba6d54ec26c98c5 Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Wed, 5 Jul 2017 21:16:58 +0200 Subject: [PATCH 2/4] Insert current implementation header --- src/libcore/macros.rs | 2 +- src/libstd/macros.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 537d925c8fa7c..ceaab1857167d 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -456,7 +456,7 @@ macro_rules! writeln { /// /// # Panics /// -/// This will always [panic!](macro.panic.html). +/// This will always [panic!](macro.panic.html) /// /// # Examples /// diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 547e840ffb7f3..fbf2ba7f9a032 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -24,6 +24,8 @@ /// 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 return with code `101`. /// /// # Examples From 9e001ce86522011ff716218f29dcd9dff082d20a Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Wed, 5 Jul 2017 22:58:39 +0200 Subject: [PATCH 3/4] Be more specific about the implications of the panic! --- src/libstd/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index fbf2ba7f9a032..a45d37b079297 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -26,7 +26,7 @@ /// /// # Current implementation /// -/// If the main thread panics it will return with code `101`. +/// If the main thread panics it will terminate all your threads and end your program with code `101`. /// /// # Examples /// From 133c1bc9ac998d22a0028d2f2e15473f0d1d08ab Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Tue, 11 Jul 2017 16:45:39 +0200 Subject: [PATCH 4/4] Wrap long line --- src/libstd/macros.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index a45d37b079297..be0d1587aab56 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -26,7 +26,8 @@ /// /// # Current implementation /// -/// If the main thread panics it will terminate all your threads and end your program with code `101`. +/// If the main thread panics it will terminate all your threads and end your +/// program with code `101`. /// /// # Examples ///