1
Fork 0

rename PointerAddress → PointerExposeAddress

This commit is contained in:
Ralf Jung 2022-06-01 13:24:44 -04:00
parent 395a09c3da
commit 4dc5d457d8
12 changed files with 23 additions and 18 deletions

View file

@ -502,7 +502,7 @@ impl<'tcx> Validator<'_, 'tcx> {
Rvalue::ThreadLocalRef(_) => return Err(Unpromotable),
// ptr-to-int casts are not possible in consts and thus not promotable
Rvalue::Cast(CastKind::PointerAddress, _, _) => return Err(Unpromotable),
Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => return Err(Unpromotable),
// int-to-ptr casts are fine, they just use the integer value at pointer type.
Rvalue::Cast(_, operand, _) => {