Skip to content

Commit 1ae1312

Browse files
committed
Explain the bits of UndefMask
1 parent 60fde17 commit 1ae1312

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/mir/interpret/allocation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,8 @@ impl<Tag> DerefMut for Relocations<Tag> {
613613

614614
type Block = u64;
615615

616+
/// A bitmask where each bit refers to the byte with the same index. If the bit is `true`, the byte
617+
/// is defined. If it is `false` the byte is undefined.
616618
#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
617619
pub struct UndefMask {
618620
blocks: Vec<Block>,

0 commit comments

Comments
 (0)