mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
Merge pull request #3916 from matthiaskrgr/rustup
rustup https://github.com/rust-lang/rust/pull/59657
This commit is contained in:
commit
17e04ac751
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ fn base_local_and_movability<'tcx>(
|
|||
place = &proj.base;
|
||||
deref = deref || matches!(proj.elem, mir::ProjectionElem::Deref);
|
||||
if !field && matches!(proj.elem, mir::ProjectionElem::Field(..)) {
|
||||
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).to_ty(cx.tcx));
|
||||
field = has_drop(cx, place.ty(&mir.local_decls, cx.tcx).ty);
|
||||
}
|
||||
},
|
||||
_ => return None,
|
||||
|
|
Loading…
Reference in a new issue