We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b760a0b commit b7420eeCopy full SHA for b7420ee
src/tools/rust-analyzer/crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs
@@ -361,11 +361,11 @@ impl<'db> PatCx for MatchCheckCtx<'db> {
361
}
362
363
364
- fn ctor_sub_tys<'a>(
365
- &'a self,
366
- ctor: &'a rustc_pattern_analysis::constructor::Constructor<Self>,
367
- ty: &'a Self::Ty,
368
- ) -> impl ExactSizeIterator<Item = (Self::Ty, PrivateUninhabitedField)> + Captures<'a> {
+ fn ctor_sub_tys(
+ &self,
+ ctor: &rustc_pattern_analysis::constructor::Constructor<Self>,
+ ty: &Self::Ty,
+ ) -> impl ExactSizeIterator<Item = (Self::Ty, PrivateUninhabitedField)> {
369
let single = |ty| smallvec![(ty, PrivateUninhabitedField(false))];
370
let tys: SmallVec<[_; 2]> = match ctor {
371
Struct | Variant(_) | UnionField => match ty.kind(Interner) {
0 commit comments