Skip to content

Commit

Permalink
Auto merge of rust-lang#99806 - oli-obk:unconstrained_opaque_type, r=…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
bors committed Sep 20, 2022
2 parents 70f4c71 + c2e9c99 commit 0dc24ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ fn check_place<'tcx>(tcx: TyCtxt<'tcx>, place: Place<'tcx>, span: Span, body: &B
}
},
ProjectionElem::ConstantIndex { .. }
| ProjectionElem::OpaqueCast(..)
| ProjectionElem::Downcast(..)
| ProjectionElem::Subslice { .. }
| ProjectionElem::Deref
Expand Down

0 comments on commit 0dc24ca

Please sign in to comment.