Hide repr attribute from doc of types without guaranteed repr

This commit is contained in:
David Tolnay
2023-02-04 19:12:01 -08:00
parent 9239760da8
commit e7963a65ed
4 changed files with 10 additions and 10 deletions

View File

@@ -232,7 +232,7 @@ impl fmt::Debug for Context<'_> {
///
/// [`Future::poll()`]: core::future::Future::poll
/// [`Poll::Pending`]: core::task::Poll::Pending
#[repr(transparent)]
#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/66401
#[stable(feature = "futures_api", since = "1.36.0")]
pub struct Waker {
waker: RawWaker,