Skip to content

Commit

Permalink
Use #[doc(no_inline)] on re-exports (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Jul 21, 2022
1 parent 18ca7a1 commit f673005
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use crate::rt;

#[doc(no_inline)]
pub use std::alloc::Layout;

/// Allocate memory with the global allocator.
Expand Down
1 change: 1 addition & 0 deletions src/lazy_static.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub use crate::rt::thread::AccessError;
pub use crate::rt::yield_now;
use crate::sync::atomic::Ordering;

#[doc(no_inline)]
pub use std::thread::panicking;

use std::fmt;
Expand Down
1 change: 1 addition & 0 deletions src/sync/atomic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub use self::int::{AtomicU16, AtomicU32, AtomicU64, AtomicU8, AtomicUsize};
mod ptr;
pub use self::ptr::AtomicPtr;

#[doc(no_inline)]
pub use std::sync::atomic::Ordering;

/// Signals the processor that it is entering a busy-wait spin-loop.
Expand Down
1 change: 1 addition & 0 deletions src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ pub use self::mutex::{Mutex, MutexGuard};
pub use self::notify::Notify;
pub use self::rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};

#[doc(no_inline)]
pub use std::sync::{LockResult, TryLockResult};
1 change: 1 addition & 0 deletions src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub use crate::rt::thread::AccessError;
pub use crate::rt::yield_now;
use crate::rt::{self, Execution, Location};

#[doc(no_inline)]
pub use std::thread::panicking;

use std::marker::PhantomData;
Expand Down

0 comments on commit f673005

Please sign in to comment.