1
Fork 0

Support array length.

This commit is contained in:
Camille GILLOT 2023-04-23 16:15:22 +00:00
parent 22986b72e5
commit fc63543792
32 changed files with 782 additions and 26 deletions

View file

@ -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() {