Skip to content

Commit e7f1e42

Browse files
committed
Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper"
This reverts commit e108481, reversing changes made to 303e8bd.
1 parent e31493b commit e7f1e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn check_rvalue<'tcx>(
109109
) -> McfResult {
110110
match rvalue {
111111
Rvalue::ThreadLocalRef(_) => Err((span, "cannot access thread local storage in const fn".into())),
112-
Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => {
112+
Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::RawPtr(_, place) => {
113113
check_place(tcx, *place, span, body, msrv)
114114
},
115115
Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body, msrv),

0 commit comments

Comments
 (0)