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 | 43e1145c80d1c2f4e159885d382659ace3a1bc5d (patch) | |
| tree | 3781248f40526d60294eaf36d351a8b91e676444 | |
| parent | dde0dca6954541e560db1e0f32c5a224c550e2c7 (diff) | |
| download | rust-43e1145c80d1c2f4e159885d382659ace3a1bc5d.tar.gz rust-43e1145c80d1c2f4e159885d382659ace3a1bc5d.zip | |
rename AddressOf -> RawBorrow inside the compiler
| -rw-r--r-- | clippy_utils/src/qualify_min_const_fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/qualify_min_const_fn.rs b/clippy_utils/src/qualify_min_const_fn.rs index 553af913ef9..95fbf0b2ea2 100644 --- a/clippy_utils/src/qualify_min_const_fn.rs +++ b/clippy_utils/src/qualify_min_const_fn.rs @@ -110,7 +110,7 @@ fn check_rvalue<'tcx>( ) -> McfResult { match rvalue { 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) }, Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv), |
