diff options
| author | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-07-22 00:59:58 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <GrigorenkoPV@ya.ru> | 2024-07-22 01:10:06 +0300 |
| commit | b74f426e074bbaafdd9d15d60c3f57ff4e3f91b9 (patch) | |
| tree | 71cfd4822c4fb60313c8d3239b8a8cada13f44e5 /library/core/src/task | |
| parent | 92c6c03805408a1a261b98013304e9bbf59ee428 (diff) | |
| download | rust-b74f426e074bbaafdd9d15d60c3f57ff4e3f91b9.tar.gz rust-b74f426e074bbaafdd9d15d60c3f57ff4e3f91b9.zip | |
Fix some `#[cfg_attr(not(doc), repr(..))]`
Now that #90435 seems to have been resolved.
Diffstat (limited to 'library/core/src/task')
| -rw-r--r-- | library/core/src/task/wake.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs index 86a965f68e0..9d74e64ed63 100644 --- a/library/core/src/task/wake.rs +++ b/library/core/src/task/wake.rs @@ -429,7 +429,7 @@ impl<'a> ContextBuilder<'a> { /// [`Future::poll()`]: core::future::Future::poll /// [`Poll::Pending`]: core::task::Poll::Pending /// [`Wake`]: ../../alloc/task/trait.Wake.html -#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/66401 +#[repr(transparent)] #[stable(feature = "futures_api", since = "1.36.0")] pub struct Waker { waker: RawWaker, @@ -695,7 +695,7 @@ impl fmt::Debug for Waker { /// [`Poll::Pending`]: core::task::Poll::Pending /// [`local_waker`]: core::task::Context::local_waker #[unstable(feature = "local_waker", issue = "118959")] -#[cfg_attr(not(doc), repr(transparent))] // work around https://github.com/rust-lang/rust/issues/66401 +#[repr(transparent)] pub struct LocalWaker { waker: RawWaker, } |
