diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-04-28 10:10:32 -0400 | 
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-05-01 21:01:51 -0400 | 
| commit | 43f9a5ec0c70f149e1a44d791e199428e8e905fd (patch) | |
| tree | 3458d9ba051b229a474398205abc87196c9016be | |
| parent | bd7d328807a8bb15732ebb764e1ea3df4fbe3fd1 (diff) | |
| download | rust-43f9a5ec0c70f149e1a44d791e199428e8e905fd.tar.gz rust-43f9a5ec0c70f149e1a44d791e199428e8e905fd.zip | |
Mark more entries in rustc_data_structures as no_inline for docs
This is a workaround for #122758, but it's not clear why 1.79 requires a more extensive amount of no_inline than the previous release. Seems like there's something relatively subtle happening here.
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index eab6d8168ca..ecb85db33f7 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -46,6 +46,7 @@ use std::collections::HashMap; use std::hash::{BuildHasher, Hash}; mod lock; +#[doc(no_inline)] pub use lock::{Lock, LockGuard, Mode}; mod worker_local; @@ -199,10 +200,15 @@ cfg_match! { pub use std::rc::Rc as Lrc; pub use std::rc::Weak as Weak; + #[doc(no_inline)] pub use std::cell::Ref as ReadGuard; + #[doc(no_inline)] pub use std::cell::Ref as MappedReadGuard; + #[doc(no_inline)] pub use std::cell::RefMut as WriteGuard; + #[doc(no_inline)] pub use std::cell::RefMut as MappedWriteGuard; + #[doc(no_inline)] pub use std::cell::RefMut as MappedLockGuard; pub use std::cell::OnceCell as OnceLock; | 
