about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2020-06-15 13:15:47 +0000
committerLzu Tao <taolzu@gmail.com>2020-06-15 13:15:47 +0000
commit64a6de25eaa4ec1a251862d81392bc9e22704c21 (patch)
tree3b99392c2c93e13443df23e1757440ddb75182e9 /src/libstd
parentd4ecf31efc2309fb6df8c2a8af9aaf8176ab1c8d (diff)
Join mutiple lines if it is more readable
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/panicking.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/libstd/panicking.rs b/src/libstd/panicking.rs
index 6a120f930ab..d22ac1d5385 100644
--- a/src/libstd/panicking.rs
+++ b/src/libstd/panicking.rs
@@ -201,8 +201,7 @@ fn default_hook(info: &PanicInfo<'_>) {
                 if FIRST_PANIC.swap(false, Ordering::SeqCst) {
                     let _ = writeln!(
                         err,
-                        "note: run with `RUST_BACKTRACE=1` \
-                                           environment variable to display a backtrace"
+                        "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"
                     );
                 }
             }
@@ -454,10 +453,7 @@ fn rust_panic_with_hook(
     // process real quickly as we don't want to try calling it again as it'll
     // probably just panic again.
     if panics > 2 {
-        util::dumb_print(format_args!(
-            "thread panicked while processing \
-                                       panic. aborting.\n"
-        ));
+        util::dumb_print(format_args!("thread panicked while processing panic. aborting.\n"));
         intrinsics::abort()
     }
 
@@ -489,10 +485,7 @@ fn rust_panic_with_hook(
         // have limited options. Currently our preference is to
         // just abort. In the future we may consider resuming
         // unwinding or otherwise exiting the thread cleanly.
-        util::dumb_print(format_args!(
-            "thread panicked while panicking. \
-                                       aborting.\n"
-        ));
+        util::dumb_print(format_args!("thread panicked while panicking. aborting.\n"));
         intrinsics::abort()
     }