Skip to content

Commit 0dc24ca

Browse files
committed
Auto merge of rust-lang#99806 - oli-obk:unconstrained_opaque_type, r=estebank
Allow patterns to constrain the hidden type of opaque types fixes rust-lang#96572 reverts a revert as original PR was a perf regression that was fixed by reverting it: rust-lang#99368 (comment)) TODO: * check if rust-lang#99685 is avoided
2 parents 70f4c71 + c2e9c99 commit 0dc24ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/qualify_min_const_fn.rs

+1
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ fn check_place<'tcx>(tcx: TyCtxt<'tcx>, place: Place<'tcx>, span: Span, body: &B
260260
}
261261
},
262262
ProjectionElem::ConstantIndex { .. }
263+
| ProjectionElem::OpaqueCast(..)
263264
| ProjectionElem::Downcast(..)
264265
| ProjectionElem::Subslice { .. }
265266
| ProjectionElem::Deref

0 commit comments

Comments
 (0)