diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-12 10:57:57 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-18 19:46:53 +0200 |
| commit | 35709be02d43b40e7f720408f8a88bf6e9d5501d (patch) | |
| tree | 5f4aa6c08afcb38af2c712e7b24cbff7983ceb4d /compiler/rustc_const_eval/src/check_consts/qualifs.rs | |
| parent | b8464961a2681585a6231b93cd7e85e50022c2b3 (diff) | |
| download | rust-35709be02d43b40e7f720408f8a88bf6e9d5501d.tar.gz rust-35709be02d43b40e7f720408f8a88bf6e9d5501d.zip | |
rename AddressOf -> RawBorrow inside the compiler
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/qualifs.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/check_consts/qualifs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/check_consts/qualifs.rs index c0f2d113c7e..c566dc7fa84 100644 --- a/compiler/rustc_const_eval/src/check_consts/qualifs.rs +++ b/compiler/rustc_const_eval/src/check_consts/qualifs.rs @@ -291,7 +291,7 @@ where in_operand::<Q, _>(cx, in_local, lhs) || in_operand::<Q, _>(cx, in_local, rhs) } - Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => { + Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => { // Special-case reborrows to be more like a copy of the reference. if let Some((place_base, ProjectionElem::Deref)) = place.as_ref().last_projection() { let base_ty = place_base.ty(cx.body, cx.tcx).ty; |
