diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-23 12:21:20 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-23 13:18:33 +0100 |
| commit | 038e7c6c38b9e1713fb258c783441bb0102b8492 (patch) | |
| tree | a78684fccabceaeedf3e082c686d54089b6d78cd /compiler/rustc_const_eval/src/interpret | |
| parent | 67b9d7d18468d1f0bddbca3cdc6878f6ef3b5a12 (diff) | |
rename MIR int2ptr casts to match library name
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index bbf11f169f9..3b2b54eb839 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -40,7 +40,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { self.write_immediate(*res, dest)?; } - CastKind::PointerFromExposedAddress => { + CastKind::PointerWithExposedProvenance => { let src = self.read_immediate(src)?; let res = self.pointer_from_exposed_address_cast(&src, cast_layout)?; self.write_immediate(*res, dest)?; |
