From a13a7d74cabfddcbca4bb08c0c640edea786eb02 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 24 Jan 2020 13:27:01 -0300 Subject: Remove unneeded & on match pattern --- src/librustc/mir/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/librustc/mir/mod.rs b/src/librustc/mir/mod.rs index d4f8bc98358..4e9835a52b7 100644 --- a/src/librustc/mir/mod.rs +++ b/src/librustc/mir/mod.rs @@ -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 { 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, } } -- cgit 1.4.1-3-g733a5