Skip to content

Commit

Permalink
No need to check min_length
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jan 16, 2024
1 parent 3ec7392 commit 5fa508e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir_transform/src/const_prop_lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl<'tcx> Value<'tcx> {
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, .. },
) => fields
.get(FieldIdx::from_u32(offset.try_into().ok()?))
Expand Down

0 comments on commit 5fa508e

Please sign in to comment.