No need to check min_length
This commit is contained in:
parent
271821fbc3
commit
1c9e621308
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ impl<'tcx> Value<'tcx> {
|
||||||
fields.get(FieldIdx::from_u32(idx.try_into().ok()?)).unwrap_or(&Value::Uninit)
|
fields.get(FieldIdx::from_u32(idx.try_into().ok()?)).unwrap_or(&Value::Uninit)
|
||||||
}
|
}
|
||||||
(
|
(
|
||||||
PlaceElem::ConstantIndex { offset, min_length: 1, from_end: false },
|
PlaceElem::ConstantIndex { offset, min_length: _, from_end: false },
|
||||||
Value::Aggregate { fields, .. },
|
Value::Aggregate { fields, .. },
|
||||||
) => fields
|
) => fields
|
||||||
.get(FieldIdx::from_u32(offset.try_into().ok()?))
|
.get(FieldIdx::from_u32(offset.try_into().ok()?))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue