File tree 4 files changed +8
-20
lines changed
4 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ pub struct PanicInfo<'a> {
39
39
impl < ' a > PanicInfo < ' a > {
40
40
#[ unstable(
41
41
feature = "panic_internals" ,
42
- reason = "internal details of the implementation of the `panic!` \
43
- and related macros",
42
+ reason = "internal details of the implementation of the `panic!` and related macros" ,
44
43
issue = "none"
45
44
) ]
46
45
#[ doc( hidden) ]
@@ -55,8 +54,7 @@ impl<'a> PanicInfo<'a> {
55
54
56
55
#[ unstable(
57
56
feature = "panic_internals" ,
58
- reason = "internal details of the implementation of the `panic!` \
59
- and related macros",
57
+ reason = "internal details of the implementation of the `panic!` and related macros" ,
60
58
issue = "none"
61
59
) ]
62
60
#[ doc( hidden) ]
@@ -244,8 +242,7 @@ impl<'a> Location<'a> {
244
242
impl < ' a > Location < ' a > {
245
243
#![ unstable(
246
244
feature = "panic_internals" ,
247
- reason = "internal details of the implementation of the `panic!` \
248
- and related macros",
245
+ reason = "internal details of the implementation of the `panic!` and related macros" ,
249
246
issue = "none"
250
247
) ]
251
248
#[ doc( hidden) ]
Original file line number Diff line number Diff line change 22
22
#![ allow( dead_code, missing_docs) ]
23
23
#![ unstable(
24
24
feature = "core_panic" ,
25
- reason = "internal details of the implementation of the `panic!` \
26
- and related macros",
25
+ reason = "internal details of the implementation of the `panic!` and related macros" ,
27
26
issue = "none"
28
27
) ]
29
28
Original file line number Diff line number Diff line change @@ -189,8 +189,7 @@ fn validate_hir_id_for_typeck_tables(
189
189
if hir_id. owner != hir_owner {
190
190
ty:: tls:: with ( |tcx| {
191
191
bug ! (
192
- "node {} with HirId::owner {:?} cannot be placed in \
193
- TypeckTables with hir_owner {:?}",
192
+ "node {} with HirId::owner {:?} cannot be placed in TypeckTables with hir_owner {:?}" ,
194
193
tcx. hir( ) . node_to_string( hir_id) ,
195
194
hir_id. owner,
196
195
hir_owner
Original file line number Diff line number Diff line change @@ -201,8 +201,7 @@ fn default_hook(info: &PanicInfo<'_>) {
201
201
if FIRST_PANIC . swap ( false , Ordering :: SeqCst ) {
202
202
let _ = writeln ! (
203
203
err,
204
- "note: run with `RUST_BACKTRACE=1` \
205
- environment variable to display a backtrace"
204
+ "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"
206
205
) ;
207
206
}
208
207
}
@@ -454,10 +453,7 @@ fn rust_panic_with_hook(
454
453
// process real quickly as we don't want to try calling it again as it'll
455
454
// probably just panic again.
456
455
if panics > 2 {
457
- util:: dumb_print ( format_args ! (
458
- "thread panicked while processing \
459
- panic. aborting.\n "
460
- ) ) ;
456
+ util:: dumb_print ( format_args ! ( "thread panicked while processing panic. aborting.\n " ) ) ;
461
457
intrinsics:: abort ( )
462
458
}
463
459
@@ -489,10 +485,7 @@ fn rust_panic_with_hook(
489
485
// have limited options. Currently our preference is to
490
486
// just abort. In the future we may consider resuming
491
487
// unwinding or otherwise exiting the thread cleanly.
492
- util:: dumb_print ( format_args ! (
493
- "thread panicked while panicking. \
494
- aborting.\n "
495
- ) ) ;
488
+ util:: dumb_print ( format_args ! ( "thread panicked while panicking. aborting.\n " ) ) ;
496
489
intrinsics:: abort ( )
497
490
}
498
491
You can’t perform that action at this time.
0 commit comments