1
Fork 0

interpret: rename Pointer::from_addr → from_addr_invalid

This commit is contained in:
Ralf Jung 2023-02-14 14:55:50 +01:00
parent 2d91939bb7
commit 91d25168cd
5 changed files with 8 additions and 6 deletions

View file

@ -517,7 +517,7 @@ pub macro compile_time_machine(<$mir: lifetime, $tcx: lifetime>) {
// Allow these casts, but make the pointer not dereferenceable.
// (I.e., they behave like transmutation.)
// This is correct because no pointers can ever be exposed in compile-time evaluation.
Ok(Pointer::from_addr(addr))
Ok(Pointer::from_addr_invalid(addr))
}
#[inline(always)]