Skip to content

Commit 965dad5

Browse files
Rollup merge of rust-lang#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](RalfJung@0a13f1a).
2 parents f64e28e + 54a3583 commit 965dad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libstd/panic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub use core::panic::{PanicInfo, Location};
7979
///
8080
/// Simply put, a type `T` implements `UnwindSafe` if it cannot easily allow
8181
/// witnessing a broken invariant through the use of `catch_unwind` (catching a
82-
/// panic). This trait is a marker trait, so it is automatically implemented for
82+
/// panic). This trait is an auto trait, so it is automatically implemented for
8383
/// many types, and it is also structurally composed (e.g. a struct is unwind
8484
/// safe if all of its components are unwind safe).
8585
///

0 commit comments

Comments
 (0)