@@ -136,15 +136,15 @@ impl<Tag, Extra> Allocation<Tag, Extra> {
136136 self . size . bytes ( ) as usize
137137 }
138138
139- /// Look at a slice which may describe undefined bytes or describe a relocation. This differs
139+ /// Looks at a slice which may describe undefined bytes or describe a relocation. This differs
140140 /// from `get_bytes_with_undef_and_ptr` in that it does no relocation checks (even on the
141141 /// edges) at all. It further ignores `AllocationExtra` callbacks.
142142 /// This must not be used for reads affecting the interpreter execution.
143143 pub fn inspect_with_undef_and_ptr_outside_interpreter ( & self , range : Range < usize > ) -> & [ u8 ] {
144144 & self . bytes [ range]
145145 }
146146
147- /// View the undef mask.
147+ /// Returns the undef mask.
148148 pub fn undef_mask ( & self ) -> & UndefMask {
149149 & self . undef_mask
150150 }
@@ -583,7 +583,7 @@ pub struct AllocationDefinedness {
583583/// Transferring the definedness mask to other allocations.
584584impl < Tag , Extra > Allocation < Tag , Extra > {
585585 /// Creates a run-length encoding of the undef_mask.
586- pub fn compress_defined_range (
586+ pub fn compress_undef_range (
587587 & self ,
588588 src : Pointer < Tag > ,
589589 size : Size ,
@@ -622,7 +622,7 @@ impl<Tag, Extra> Allocation<Tag, Extra> {
622622 }
623623
624624 /// Apply multiple instances of the run-length encoding to the undef_mask.
625- pub fn mark_compressed_range (
625+ pub fn mark_compressed_undef_range (
626626 & mut self ,
627627 defined : & AllocationDefinedness ,
628628 dest : Pointer < Tag > ,
0 commit comments