Rollup merge of #54913 - RalfJung:unwind-safe, r=alexcrichton
doc fix: it's auto traits that make for automatic implementations
Being a marker trait is not good enough (that just means "no items in the trait").
r? @alexcrichton who [originally wrote these docs](0a13f1abaf
).
This commit is contained in:
commit
80ee322a20
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ pub use core::panic::{PanicInfo, Location};
|
||||||
///
|
///
|
||||||
/// Simply put, a type `T` implements `UnwindSafe` 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 `catch_unwind` (catching a
|
/// witnessing a broken invariant through the use of `catch_unwind` (catching a
|
||||||
/// panic). This trait is a marker trait, so it is automatically implemented for
|
/// panic). This trait is an auto trait, so it is automatically implemented for
|
||||||
/// many types, and it is also structurally composed (e.g. a struct is unwind
|
/// many types, and it is also structurally composed (e.g. a struct is unwind
|
||||||
/// safe if all of its components are unwind safe).
|
/// safe if all of its components are unwind safe).
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue