Skip to content
Permalink
Browse files

Reintroduce the invariant comment for clarity

  • Loading branch information...
oli-obk committed Feb 16, 2019
1 parent f7c4931 commit 7db96a37e7b4b38cdd0354d715cecd56dfdd03b0
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/librustc/mir/interpret/value.rs
@@ -32,6 +32,7 @@ pub enum ConstValue<'tcx> {
Slice(Scalar, u64),

/// An allocation together with a pointer into the allocation.
/// Invariant: the pointer's `AllocId` resolves to the allocation.
ByRef(Pointer, &'tcx Allocation),
}

0 comments on commit 7db96a3

Please sign in to comment.
You can’t perform that action at this time.