Reintroduce the invariant comment for clarity

This commit is contained in:
Oliver Scherer 2019-02-16 14:33:54 +01:00
parent f7c493121d
commit 7db96a37e7

View file

@ -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),
}