- if let StatementKind::Assign(place, box rvalue) = &stmt.kind {
- let into = match place {
- Place::Base(PlaceBase::Local(into)) => into,
- Place::Projection(box Projection {
- base: Place::Base(PlaceBase::Local(into)),
- elem: ProjectionElem::Deref,
- }) => into,
- _ => {
+ if let StatementKind::Assign(box(place, rvalue)) = &stmt.kind {
+ let into = match place.local_or_deref_local() {
+ Some(into) => into,
+ None => {