Skip to content

Commit 3859a47

Browse files
committed
Remove unneeded & on match pattern
1 parent afe9928 commit 3859a47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1797,8 +1797,8 @@ impl<'tcx> Place<'tcx> {
17971797
// FIXME: can we safely swap the semantics of `fn base_local` below in here instead?
17981798
pub fn local_or_deref_local(&self) -> Option<Local> {
17991799
match self.as_ref() {
1800-
PlaceRef { local, projection: &[] }
1801-
| PlaceRef { local, projection: &[ProjectionElem::Deref] } => Some(local),
1800+
PlaceRef { local, projection: [] }
1801+
| PlaceRef { local, projection: [ProjectionElem::Deref] } => Some(local),
18021802
_ => None,
18031803
}
18041804
}

0 commit comments

Comments
 (0)