Skip to content

Commit be30513

Browse files
CoAlloc: Tidy for rust-lang/rust #109190, rust-lang/rust #108751.
1 parent 2e99282 commit be30513

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

library/alloc/src/collections/btree/node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ const KV_IDX_CENTER: usize = B - 1;
4646
const EDGE_IDX_LEFT_OF_CENTER: usize = B - 1;
4747
const EDGE_IDX_RIGHT_OF_CENTER: usize = B;
4848

49-
/// Workaround https://github.com/rust-lang/rust/issues/108751
49+
/// Workaround <https://github.com/rust-lang/rust/issues/108751>
5050
macro_rules! leaf_node_capacity {
5151
() => {
5252
11
5353
}; // instead of: CAPACITY
5454
}
5555

56-
/// Workaround https://github.com/rust-lang/rust/issues/108751
56+
/// Workaround <https://github.com/rust-lang/rust/issues/108751>
5757
macro_rules! internal_node_capacity {
5858
() => {
5959
12

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ impl<T, const CO_ALLOC_PREF: CoAllocPref> VecDeque<T, Global, CO_ALLOC_PREF>
28722872
where
28732873
[(); { crate::meta_num_slots_global!(CO_ALLOC_PREF) }]:,
28742874
{
2875-
/// Like [from_iter], but coallocation-aware.
2875+
/// Like [from_iter()], but coallocation-aware.
28762876
pub fn from_iter_co<I: IntoIterator<Item = T>>(iter: I) -> VecDeque<T, Global, CO_ALLOC_PREF> {
28772877
SpecFromIterCo::spec_from_iter_co(iter.into_iter())
28782878
}

library/alloc/src/macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ macro_rules! check_type_and_cast {
154154
}
155155

156156
// ----- CoAlloc constant-like macros:
157-
/// Coallocation option/parameter about using metadata that does prefer to use meta data. This is of type [::alloc::co_alloc::CoAllocMetaNumSlotsPref] (but not a whole []::alloc::co_alloc::CoAllocPref]).
157+
/// Coallocation option/parameter about using metadata that does prefer to use meta data. This is of type [co_alloc::CoAllocMetaNumSlotsPref] (but not a whole [co_alloc::CoAllocPref]).
158158
#[doc(hidden)]
159159
#[unstable(feature = "global_co_alloc_meta", issue = "none")]
160160
#[macro_export]
@@ -164,7 +164,7 @@ macro_rules! CO_ALLOC_PREF_NUM_META_SLOTS_ONE {
164164
};
165165
}
166166

167-
/// Coallocation option/parameter about using metadata that prefers NOT to use meta data. This is of type [::alloc::co_alloc::CoAllocMetaNumSlotsPref] (but not a whole []::alloc::co_alloc::CoAllocPref]).
167+
/// Coallocation option/parameter about using metadata that prefers NOT to use meta data. This is of type [co_alloc::CoAllocMetaNumSlotsPref] (but not a whole [co_alloc::CoAllocPref]).
168168
#[unstable(feature = "global_co_alloc_meta", issue = "none")]
169169
#[macro_export]
170170
macro_rules! CO_ALLOC_PREF_NUM_META_SLOTS_ZERO {
@@ -237,7 +237,7 @@ macro_rules! CO_ALLOC_PREF_META_DEFAULT {
237237
};
238238
}
239239

240-
/// Default [::alloc::CoAllocPref] value/config, based on `CO_ALLOC_PREF_META_DEFAULT`.
240+
/// Default [co_alloc::CoAllocPref] value/config, based on `CO_ALLOC_PREF_META_DEFAULT`.
241241
#[unstable(feature = "global_co_alloc_meta", issue = "none")]
242242
#[macro_export]
243243
macro_rules! CO_ALLOC_PREF_DEFAULT {
@@ -294,7 +294,7 @@ macro_rules! co_alloc_pref {
294294
/// preference for coallocation, as an [::alloc::CoAllocPref] value.
295295
///
296296
/// The type of second parameter `co_alloc_pref` WILL CHANGE. DO NOT hardcode/cast/mix that type.
297-
/// Instead, use [::alloc::CoAllocPref].
297+
/// Instead, use [co_alloc::CoAllocPref].
298298
///
299299
// FIXME replace the macro with an (updated version of the below) `const` function). Only once
300300
// generic_const_exprs is stable (that is, when consumer crates don't need to declare

library/alloc/src/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ impl<T> [T] {
644644
hack::into_vec(self)
645645
}
646646

647-
/// Coallocation-aware version of [into_vec].
647+
/// Coallocation-aware version of [into_vec()].
648648
#[rustc_allow_incoherent_impl]
649649
#[unstable(feature = "global_co_alloc", issue = "none")]
650650
#[inline]

0 commit comments

Comments
 (0)