rename AddressOf -> RawBorrow inside the compiler

This commit is contained in:
Ralf Jung 2024-08-12 10:57:57 +02:00
parent dde0dca695
commit 43e1145c80

View File

@ -110,7 +110,7 @@ fn check_rvalue<'tcx>(
) -> McfResult { ) -> McfResult {
match rvalue { match rvalue {
Rvalue::ThreadLocalRef(_) => Err((span, "cannot access thread local storage in const fn".into())), Rvalue::ThreadLocalRef(_) => Err((span, "cannot access thread local storage in const fn".into())),
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => { Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => {
check_place(tcx, *place, span, body, msrv) check_place(tcx, *place, span, body, msrv)
}, },
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv), Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv),