about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-03-12 14:43:49 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-03-12 14:43:49 +0100
commit1ae131211be24a337877e6dbcd9b6c52a86b9511 (patch)
treeeb9a2fae563e031bc49f7fc4f4f19753f3b7cda8
parent60fde17a293ab94c56e415f5d5dd036527b4f201 (diff)
downloadrust-1ae131211be24a337877e6dbcd9b6c52a86b9511.tar.gz
rust-1ae131211be24a337877e6dbcd9b6c52a86b9511.zip
Explain the bits of `UndefMask`
-rw-r--r--src/librustc/mir/interpret/allocation.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/mir/interpret/allocation.rs b/src/librustc/mir/interpret/allocation.rs
index 004804f7c21..2ce9a4a0f20 100644
--- a/src/librustc/mir/interpret/allocation.rs
+++ b/src/librustc/mir/interpret/allocation.rs
@@ -613,6 +613,8 @@ impl<Tag> DerefMut for Relocations<Tag> {
 
 type Block = u64;
 
+/// A bitmask where each bit refers to the byte with the same index. If the bit is `true`, the byte
+/// is defined. If it is `false` the byte is undefined.
 #[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
 pub struct UndefMask {
     blocks: Vec<Block>,