File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ macro_rules! rtprintpanic {
46
46
macro_rules! rtabort {
47
47
( $( $t: tt) * ) => {
48
48
{
49
- rtprintpanic!( "fatal runtime error: {}\n " , format_args!( $( $t) * ) ) ;
49
+ rtprintpanic!( "fatal runtime error: {}, aborting \n " , format_args!( $( $t) * ) ) ;
50
50
crate :: sys:: abort_internal( ) ;
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -22,12 +22,16 @@ use crate::fmt;
22
22
///
23
23
/// Initialization is dynamically performed on the first call to a setter (e.g.
24
24
/// [`with`]) within a thread, and values that implement [`Drop`] get
25
- /// destructed when a thread exits. Some caveats apply, which are explained below.
25
+ /// destructed when a thread exits. Some platform-specific caveats apply, which
26
+ /// are explained below.
27
+ /// Note that, should the destructor panics, the whole process will be [aborted].
26
28
///
27
29
/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
28
30
/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
29
31
/// the first call to `with`.
30
32
///
33
+ /// [aborted]: crate::process::abort
34
+ ///
31
35
/// # Single-thread Synchronization
32
36
///
33
37
/// Though there is no potential race with other threads, it is still possible to
You can’t perform that action at this time.
0 commit comments