Skip to content

Commit

Permalink
Mark more entries in rustc_data_structures as no_inline for docs
Browse files Browse the repository at this point in the history
This is a workaround for rust-lang#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.
  • Loading branch information
Mark-Simulacrum committed Apr 29, 2024
1 parent 0a807e3 commit 0870e00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_data_structures/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0870e00

Please sign in to comment.