File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
compiler/rustc_index/src/bit_set Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,13 @@ use crate::Idx;
26
26
/// variant for the empty set. In this case, the domain size is stored inline along with a few
27
27
/// bits indicating that the set is empty. Allocation is deferred until needed, such as on
28
28
/// the first insert or remove operation. This avoids the need to wrap a lazily initialised bit set
29
- /// in a [`OnceCell`] or an [`Option`]—you can simply create an empty set and populate it if needed.
29
+ /// in a [`OnceCell`](std::cell::OnceCell) or an [`Option`]—you can simply create an empty set and
30
+ /// populate it if needed.
30
31
///
31
32
/// Note 1: Since this bitset is dense, if your domain is large and/or relatively homogeneous (e.g.
32
- /// long runs of set or unset bits), it may be more efficient to use a [MixedBitSet] or an
33
- /// [IntervalSet](crate::interval::IntervalSet), which are better suited for sparse or highly
33
+ /// long runs of set or unset bits), it may be more efficient to use a
34
+ /// [`MixedBitSet`](crate::bit_set::MixedBitSet) or an
35
+ /// [`IntervalSet`](crate::interval::IntervalSet), which are better suited for sparse or highly
34
36
/// compressible domains.
35
37
///
36
38
/// Note 2: Use [`GrowableBitSet`] if you require support for resizing after creation.
You can’t perform that action at this time.
0 commit comments