about summary refs log tree commit diff
path: root/library/core/src/future/future.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/future/future.rs')
-rw-r--r--library/core/src/future/future.rs2
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"