about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-01-24 13:27:01 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-01-28 10:12:54 -0300
commita13a7d74cabfddcbca4bb08c0c640edea786eb02 (patch)
tree924b21573511876d9ace3f1bc41e993e241d924d /src
parent5f1caa4032e7bd31aab30a62d07e359a69c56517 (diff)
downloadrust-a13a7d74cabfddcbca4bb08c0c640edea786eb02.tar.gz
rust-a13a7d74cabfddcbca4bb08c0c640edea786eb02.zip
Remove unneeded & on match pattern
Diffstat (limited to 'src')
-rw-r--r--src/librustc/mir/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<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,
         }
     }