about summary refs log tree commit diff
path: root/library/core/src/task
diff options
context:
space:
mode:
authorGnomedDev <david2005thomas@gmail.com>2024-09-18 22:05:02 +0100
committerGnomedDev <david2005thomas@gmail.com>2024-09-19 13:13:42 +0100
commit372f68b6a6e0b6997d065cef4f6cef16a6fb53e3 (patch)
treedb6829480377b871ae9b7522311f6689d4379edb /library/core/src/task
parent5b552702258e537fea1d95119ff1d309697bdadb (diff)
downloadrust-372f68b6a6e0b6997d065cef4f6cef16a6fb53e3.tar.gz
rust-372f68b6a6e0b6997d065cef4f6cef16a6fb53e3.zip
[Clippy] Swap `waker_clone_wake` to use diagnostic item instead of path
Diffstat (limited to 'library/core/src/task')
-rw-r--r--library/core/src/task/wake.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs
index 5e559ad8d2c..a5103499c8a 100644
--- a/library/core/src/task/wake.rs
+++ b/library/core/src/task/wake.rs
@@ -414,6 +414,7 @@ impl<'a> ContextBuilder<'a> {
 /// [`Wake`]: ../../alloc/task/trait.Wake.html
 #[repr(transparent)]
 #[stable(feature = "futures_api", since = "1.36.0")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "Waker")]
 pub struct Waker {
     waker: RawWaker,
 }