Skip to content

Commit aeb18d6

Browse files
committed
Add doc comment to check_bytes
1 parent 831141a commit aeb18d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/mir/interpret/allocation.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
285285
}
286286
}
287287

288+
/// Checks whether the target range does not have relocations on the edge of the range
289+
///
290+
/// if `allow_ptr_and_undef` is `false`, also check whether the entire range contains
291+
/// neither undefined bytes nor any relocations
288292
pub fn check_bytes(
289293
&self,
290294
cx: impl HasDataLayout,

0 commit comments

Comments
 (0)