Change ty.kind to a method
This commit is contained in:
@@ -47,7 +47,7 @@ where
|
||||
ProjectionElem::Deref => break,
|
||||
ProjectionElem::Field(..) => {
|
||||
let ty = Place::ty_from(place.local, proj_base, local_decls, tcx).ty;
|
||||
match ty.kind {
|
||||
match ty.kind() {
|
||||
ty::Adt(def, _) if def.repr.packed() => return true,
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user