Remove unneeded & on match pattern

This commit is contained in:
Santiago Pastorino 2020-01-24 13:27:01 -03:00
parent 5f1caa4032
commit a13a7d74ca
No known key found for this signature in database
GPG key ID: 88C941CDA1D46432

View file

@ -1797,8 +1797,8 @@ impl<'tcx> Place<'tcx> {
// FIXME: can we safely swap the semantics of `fn base_local` below in here instead?
pub fn local_or_deref_local(&self) -> Option<Local> {
match self.as_ref() {
PlaceRef { local, projection: &[] }
| PlaceRef { local, projection: &[ProjectionElem::Deref] } => Some(local),
PlaceRef { local, projection: [] }
| PlaceRef { local, projection: [ProjectionElem::Deref] } => Some(local),
_ => None,
}
}