File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/tools/rust-analyzer/crates/hir-ty/src/diagnostics/match_check Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -361,11 +361,11 @@ impl<'db> PatCx for MatchCheckCtx<'db> {
361361 }
362362 }
363363
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 > {
364+ fn ctor_sub_tys (
365+ & self ,
366+ ctor : & rustc_pattern_analysis:: constructor:: Constructor < Self > ,
367+ ty : & Self :: Ty ,
368+ ) -> impl ExactSizeIterator < Item = ( Self :: Ty , PrivateUninhabitedField ) > {
369369 let single = |ty| smallvec ! [ ( ty, PrivateUninhabitedField ( false ) ) ] ;
370370 let tys: SmallVec < [ _ ; 2 ] > = match ctor {
371371 Struct | Variant ( _) | UnionField => match ty. kind ( Interner ) {
You can’t perform that action at this time.
0 commit comments