summaryrefslogtreecommitdiff
path: root/yjit/src/cruby.rs
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-06-28 13:44:35 -0400
committerAlan Wu <[email protected]>2024-06-28 13:44:35 -0400
commit3e14fe7c2115a71ac46bca50443c12c4be516efc ()
tree105fa760fbfefee5fe0b32865fb2f511ff4bb11a /yjit/src/cruby.rs
parentbc91e8ff1db329e194f3d9706d94d5261090901d (diff)
YJIT: Fix `cargo doc --document-private-items` warnings [ci skip]
Mostly putting angle brackets around links to follow markdown syntax.
-rw-r--r--yjit/src/cruby.rs9
1 files changed, 4 insertions, 5 deletions
@@ -768,17 +768,16 @@ mod manual_defs {
pub use manual_defs::*;
/// Interned ID values for Ruby symbols and method names.
-/// See [crate::cruby::ID] and usages outside of YJIT.
pub(crate) mod ids {
use std::sync::atomic::AtomicU64;
/// Globals to cache IDs on boot. Atomic to use with relaxed ordering
- /// so reads can happen without `unsafe`. Initialization is done
- /// single-threaded and release-acquire on [crate::yjit::YJIT_ENABLED]
- /// makes sure we read the cached values after initialization is done.
macro_rules! def_ids {
($(name: $ident:ident content: $str:literal)*) => {
$(
- #[doc = concat!("[crate::cruby::ID] for `", stringify!($str), "`")]
pub static $ident: AtomicU64 = AtomicU64::new(0);
)*