Skip to content

Commit 1c9e621

Browse files
committedJan 23, 2024
No need to check min_length
1 parent 271821f commit 1c9e621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_mir_transform/src/const_prop_lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl<'tcx> Value<'tcx> {
112112
fields.get(FieldIdx::from_u32(idx.try_into().ok()?)).unwrap_or(&Value::Uninit)
113113
}
114114
(
115-
PlaceElem::ConstantIndex { offset, min_length: 1, from_end: false },
115+
PlaceElem::ConstantIndex { offset, min_length: _, from_end: false },
116116
Value::Aggregate { fields, .. },
117117
) => fields
118118
.get(FieldIdx::from_u32(offset.try_into().ok()?))

0 commit comments

Comments
 (0)
Please sign in to comment.