diff options
| author | ouz-a <ouz.agz@gmail.com> | 2023-08-05 12:02:39 +0300 |
|---|---|---|
| committer | ouz-a <ouz.agz@gmail.com> | 2023-08-06 17:29:09 +0300 |
| commit | 6df546281bf8ffc39df9430aa1717656dfbbcf7a (patch) | |
| tree | 77e40ef59a433458f0b7de5f916b48349285ee1d /compiler/rustc_const_eval/src/interpret | |
| parent | 5cbfee545543a8e3d91c54997c6bcd24d2054321 (diff) | |
| download | rust-6df546281bf8ffc39df9430aa1717656dfbbcf7a.tar.gz rust-6df546281bf8ffc39df9430aa1717656dfbbcf7a.zip | |
cleanup misinformation regarding has_deref
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/step.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/step.rs b/compiler/rustc_const_eval/src/interpret/step.rs index ead172f04a3..9661caeded7 100644 --- a/compiler/rustc_const_eval/src/interpret/step.rs +++ b/compiler/rustc_const_eval/src/interpret/step.rs @@ -248,7 +248,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { AddressOf(_, place) => { // Figure out whether this is an addr_of of an already raw place. - let place_base_raw = if place.has_deref() { + let place_base_raw = if place.is_indirect_first_projection() { let ty = self.frame().body.local_decls[place.local].ty; ty.is_unsafe_ptr() } else { |
