File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/rustc_data_structures/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,12 @@ pub use drop::TaggedPtr;
40
40
/// [`into_ptr`] must be valid for writes (and thus calling [`NonNull::as_mut`]
41
41
/// on it must be safe).
42
42
///
43
- /// The `BITS` constant must be correct. At least `BITS` bits, least- significant,
44
- /// must be zero on all pointers returned from [`into_ptr`].
43
+ /// The [ `BITS`] constant must be correct. At least [ `BITS`] least significant
44
+ /// bits, must be zero on all pointers returned from [`into_ptr`].
45
45
///
46
46
/// For example, if the alignment of [`Self::Target`] is 2, then `BITS` should be 1.
47
47
///
48
+ /// [`BITS`]: Pointer::BITS
48
49
/// [`into_ptr`]: Pointer::into_ptr
49
50
/// [valid]: std::ptr#safety
50
51
/// [`<Self as Deref>::Target`]: Deref::Target
@@ -122,7 +123,7 @@ pub unsafe trait Tag: Copy {
122
123
/// This function guarantees that only the least-significant [`Self::BITS`]
123
124
/// bits can be non-zero.
124
125
///
125
- /// [`from_usize`]: Pointer ::from_usize
126
+ /// [`from_usize`]: Tag ::from_usize
126
127
/// [`Self::BITS`]: Tag::BITS
127
128
fn into_usize ( self ) -> usize ;
128
129
You can’t perform that action at this time.
0 commit comments