Skip to content

Commit f3c435e

Browse files
committed
Reorder AllocationDefinedness members
This improves the clarity of the documentation a bit since they can reference each other when reading the member docs in sequence.
1 parent 823c3b9 commit f3c435e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/mir/interpret/allocation.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,11 @@ impl<'tcx, Tag, Extra> Allocation<Tag, Extra> {
581581
/// Run-length encoding of the undef mask.
582582
/// Used to copy parts of a mask multiple times to another allocation.
583583
pub struct AllocationDefinedness {
584-
/// The lengths of ranges that are run-length encoded.
585-
ranges: smallvec::SmallVec::<[u64; 1]>,
586584
/// The definedness of the first range.
587585
initial: bool,
586+
/// The lengths of ranges that are run-length encoded.
587+
/// The definedness of the ranges alternate starting with `initial`.
588+
ranges: smallvec::SmallVec::<[u64; 1]>,
588589
}
589590

590591
/// Transferring the definedness mask to other allocations.

0 commit comments

Comments
 (0)