We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe9928 commit 3859a47Copy full SHA for 3859a47
src/librustc/mir/mod.rs
@@ -1797,8 +1797,8 @@ impl<'tcx> Place<'tcx> {
1797
// FIXME: can we safely swap the semantics of `fn base_local` below in here instead?
1798
pub fn local_or_deref_local(&self) -> Option<Local> {
1799
match self.as_ref() {
1800
- PlaceRef { local, projection: &[] }
1801
- | PlaceRef { local, projection: &[ProjectionElem::Deref] } => Some(local),
+ PlaceRef { local, projection: [] }
+ | PlaceRef { local, projection: [ProjectionElem::Deref] } => Some(local),
1802
_ => None,
1803
}
1804
0 commit comments