Reintroduce the invariant comment for clarity
This commit is contained in:
parent
f7c493121d
commit
7db96a37e7
1 changed files with 1 additions and 0 deletions
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue