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/future | |
| 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/future')
| -rw-r--r-- | library/core/src/future/future.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/future/future.rs b/library/core/src/future/future.rs index 71b9464efd2..af2e422e8a0 100644 --- a/library/core/src/future/future.rs +++ b/library/core/src/future/future.rs @@ -28,7 +28,7 @@ use crate::task::{Context, Poll}; #[must_use = "futures do nothing unless you `.await` or poll them"] #[stable(feature = "futures_api", since = "1.36.0")] #[lang = "future_trait"] -#[rustc_on_unimplemented( +#[diagnostic::on_unimplemented( label = "`{Self}` is not a future", message = "`{Self}` is not a future", note = "{Self} must be a future or must implement `IntoFuture` to be awaited" |
