@@ -73,15 +73,15 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> {
73
73
///
74
74
/// [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1236-stabilize-catch-panic.md
75
75
///
76
- /// ## What is `RecoverSafe `?
76
+ /// ## What is `UnwindSafe `?
77
77
///
78
78
/// Now that we've got an idea of what panic safety is in Rust, it's also
79
79
/// important to understand what this trait represents. As mentioned above, one
80
80
/// way to witness broken invariants is through the `recover` function in this
81
81
/// module as it allows catching a panic and then re-using the environment of
82
82
/// the closure.
83
83
///
84
- /// Simply put, a type `T` implements `RecoverSafe ` if it cannot easily allow
84
+ /// Simply put, a type `T` implements `UnwindSafe ` if it cannot easily allow
85
85
/// witnessing a broken invariant through the use of `recover` (catching a
86
86
/// panic). This trait is a marker trait, so it is automatically implemented for
87
87
/// many types, and it is also structurally composed (e.g. a struct is recover
@@ -108,7 +108,7 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> {
108
108
///
109
109
/// Is not intended that most types or functions need to worry about this trait.
110
110
/// It is only used as a bound on the `recover` function and as mentioned above,
111
- /// the lack of `unsafe` means it is mostly an advisory. The `AssertRecoverSafe `
111
+ /// the lack of `unsafe` means it is mostly an advisory. The `AssertUnwindSafe `
112
112
/// wrapper struct in this module can be used to force this trait to be
113
113
/// implemented for any closed over variables passed to the `recover` function
114
114
/// (more on this below).
@@ -246,7 +246,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Rc<T> {}
246
246
#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
247
247
impl < T : RefUnwindSafe + ?Sized > UnwindSafe for Arc < T > { }
248
248
249
- // Pretty simple implementations for the `RefRecoverSafe ` marker trait,
249
+ // Pretty simple implementations for the `RefUnwindSafe ` marker trait,
250
250
// basically just saying that this is a marker trait and `UnsafeCell` is the
251
251
// only thing which doesn't implement it (which then transitively applies to
252
252
// everything else).
0 commit comments