diff options
| author | Georg Semmler <github@weiznich.de> | 2023-12-22 14:30:12 +0100 |
|---|---|---|
| committer | Georg Semmler <github@weiznich.de> | 2024-01-05 15:23:09 +0100 |
| commit | 2c3aeea1baf4eed29f131f53e852532d8e3833c3 (patch) | |
| tree | 35075e8c21ede885ff921c764e8d1735fd99793f /library/core/src/panic | |
| parent | ddfcf86867e4a8f29ea235ee700aa89a8b6ddf21 (diff) | |
Replace some usage of `#[rustc_on_unimplemented]` with
`#[diagnostic::on_unimplemented]` This commit replaces those `#[rustc_on_unimplemented]` attributes with their equivalent `#[diagnostic::on_unimplemented]` where this is supported (So no filter or any extended option)
Diffstat (limited to 'library/core/src/panic')
| -rw-r--r-- | library/core/src/panic/unwind_safe.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/panic/unwind_safe.rs b/library/core/src/panic/unwind_safe.rs index 6a53909a8f1..37859212c0e 100644 --- a/library/core/src/panic/unwind_safe.rs +++ b/library/core/src/panic/unwind_safe.rs @@ -83,7 +83,7 @@ use crate::task::{Context, Poll}; /// implemented for any closed over variables passed to `catch_unwind`. #[stable(feature = "catch_unwind", since = "1.9.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "unwind_safe_trait")] -#[rustc_on_unimplemented( +#[diagnostic::on_unimplemented( message = "the type `{Self}` may not be safely transferred across an unwind boundary", label = "`{Self}` may not be safely transferred across an unwind boundary" )] @@ -99,7 +99,7 @@ pub auto trait UnwindSafe {} /// [`UnwindSafe`] trait, for more information see that documentation. #[stable(feature = "catch_unwind", since = "1.9.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "ref_unwind_safe_trait")] -#[rustc_on_unimplemented( +#[diagnostic::on_unimplemented( message = "the type `{Self}` may contain interior mutability and a reference may not be safely \ transferrable across a catch_unwind boundary", label = "`{Self}` may contain interior mutability and a reference may not be safely \ |
