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.
This commit is contained in:
Mark Rousskov 2024-04-28 10:10:32 -04:00
parent bd7d328807
commit 43f9a5ec0c

View File

@ -46,6 +46,7 @@
use std::hash::{BuildHasher, Hash}; use std::hash::{BuildHasher, Hash};
mod lock; mod lock;
#[doc(no_inline)]
pub use lock::{Lock, LockGuard, Mode}; pub use lock::{Lock, LockGuard, Mode};
mod worker_local; mod worker_local;
@ -199,10 +200,15 @@ pub fn fetch_add(&self, val: T, _: Ordering) -> T {
pub use std::rc::Rc as Lrc; pub use std::rc::Rc as Lrc;
pub use std::rc::Weak as Weak; pub use std::rc::Weak as Weak;
#[doc(no_inline)]
pub use std::cell::Ref as ReadGuard; pub use std::cell::Ref as ReadGuard;
#[doc(no_inline)]
pub use std::cell::Ref as MappedReadGuard; pub use std::cell::Ref as MappedReadGuard;
#[doc(no_inline)]
pub use std::cell::RefMut as WriteGuard; pub use std::cell::RefMut as WriteGuard;
#[doc(no_inline)]
pub use std::cell::RefMut as MappedWriteGuard; pub use std::cell::RefMut as MappedWriteGuard;
#[doc(no_inline)]
pub use std::cell::RefMut as MappedLockGuard; pub use std::cell::RefMut as MappedLockGuard;
pub use std::cell::OnceCell as OnceLock; pub use std::cell::OnceCell as OnceLock;