diff options
| author | bors <bors@rust-lang.org> | 2016-05-16 07:25:04 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-16 07:25:04 -0700 |
| commit | c1ccf97e51ca22ccfa585aec85392cc059bc0e12 (patch) | |
| tree | 72b781108a3e6c77b91b663a034c09d40e766ba1 /src | |
| parent | 89430be0c1a45600d7e89ee4e5d3bb68ec8902bb (diff) | |
| parent | 81f479f5bde713075462281f123bc04952f5e660 (diff) | |
| download | rust-c1ccf97e51ca22ccfa585aec85392cc059bc0e12.tar.gz rust-c1ccf97e51ca22ccfa585aec85392cc059bc0e12.zip | |
Auto merge of #33663 - rphmeier:recover_rename, r=sfackler
rename a few occurrences of RecoverSafe in docs
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/panic.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index 9a195d93afd..a2c6e79fb92 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -73,7 +73,7 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> { /// /// [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1236-stabilize-catch-panic.md /// -/// ## What is `RecoverSafe`? +/// ## What is `UnwindSafe`? /// /// Now that we've got an idea of what panic safety is in Rust, it's also /// important to understand what this trait represents. As mentioned above, one @@ -81,7 +81,7 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> { /// module as it allows catching a panic and then re-using the environment of /// the closure. /// -/// Simply put, a type `T` implements `RecoverSafe` if it cannot easily allow +/// Simply put, a type `T` implements `UnwindSafe` if it cannot easily allow /// witnessing a broken invariant through the use of `recover` (catching a /// panic). This trait is a marker trait, so it is automatically implemented for /// 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> { /// /// Is not intended that most types or functions need to worry about this trait. /// It is only used as a bound on the `recover` function and as mentioned above, -/// the lack of `unsafe` means it is mostly an advisory. The `AssertRecoverSafe` +/// the lack of `unsafe` means it is mostly an advisory. The `AssertUnwindSafe` /// wrapper struct in this module can be used to force this trait to be /// implemented for any closed over variables passed to the `recover` function /// (more on this below). @@ -246,7 +246,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Rc<T> {} #[stable(feature = "catch_unwind", since = "1.9.0")] impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Arc<T> {} -// Pretty simple implementations for the `RefRecoverSafe` marker trait, +// Pretty simple implementations for the `RefUnwindSafe` marker trait, // basically just saying that this is a marker trait and `UnsafeCell` is the // only thing which doesn't implement it (which then transitively applies to // everything else). |
