Skip to content

Commit d716d72

Browse files
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.
1 parent 51361d7 commit d716d72

File tree

1 file changed

+6
-0
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+6
-0
lines changed

compiler/rustc_data_structures/src/sync.rs

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use std::collections::HashMap;
4646
use std::hash::{BuildHasher, Hash};
4747

4848
mod lock;
49+
#[doc(no_inline)]
4950
pub use lock::{Lock, LockGuard, Mode};
5051

5152
mod worker_local;
@@ -199,10 +200,15 @@ cfg_match! {
199200

200201
pub use std::rc::Rc as Lrc;
201202
pub use std::rc::Weak as Weak;
203+
#[doc(no_inline)]
202204
pub use std::cell::Ref as ReadGuard;
205+
#[doc(no_inline)]
203206
pub use std::cell::Ref as MappedReadGuard;
207+
#[doc(no_inline)]
204208
pub use std::cell::RefMut as WriteGuard;
209+
#[doc(no_inline)]
205210
pub use std::cell::RefMut as MappedWriteGuard;
211+
#[doc(no_inline)]
206212
pub use std::cell::RefMut as MappedLockGuard;
207213

208214
pub use std::cell::OnceCell as OnceLock;

0 commit comments

Comments
 (0)