Support array length.
This commit is contained in:
parent
22986b72e5
commit
fc63543792
32 changed files with 782 additions and 26 deletions
|
@ -1751,6 +1751,13 @@ impl<'tcx> PlaceRef<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Local> for PlaceRef<'_> {
|
||||
#[inline]
|
||||
fn from(local: Local) -> Self {
|
||||
PlaceRef { local, projection: &[] }
|
||||
}
|
||||
}
|
||||
|
||||
impl Debug for Place<'_> {
|
||||
fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
|
||||
for elem in self.projection.iter().rev() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue