[Clippy] Swap waker_clone_wake to use diagnostic item instead of path · qinheping/verify-rust-std@beaebb5 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit beaebb5

[Clippy] Swap waker_clone_wake to use diagnostic item instead of path

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -414,6 +414,7 @@ impl<'a> ContextBuilder<'a> {
414 414 /// [`Wake`]: ../../alloc/task/trait.Wake.html
415 415 #[repr(transparent)]
416 416 #[stable(feature = "futures_api", since = "1.36.0")]
417 +#[cfg_attr(not(test), rustc_diagnostic_item = "Waker")]
417 418 pub struct Waker {
418 419 waker: RawWaker,
419 420 }