Skip to content

Commit 4516fee

Browse files
committed
Remove Rvalue::Len.
1 parent 968569f commit 4516fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn check_rvalue<'tcx>(
126126
) -> McfResult {
127127
match rvalue {
128128
Rvalue::ThreadLocalRef(_) => Err((span, "cannot access thread local storage in const fn".into())),
129-
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => {
129+
Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => {
130130
check_place(cx, *place, span, body, msrv)
131131
},
132132
Rvalue::CopyForDeref(place) => check_place(cx, *place, span, body, msrv),

0 commit comments

Comments
 (0)