@@ -998,14 +998,6 @@ impl ConstructorSet {
998998 split. push ( Single ) ;
999999 }
10001000 }
1001- ConstructorSet :: Variants { variants, non_exhaustive } if seen. is_empty ( ) => {
1002- missing. extend ( variants. iter ( ) . copied ( ) . map ( Variant ) . filter ( |ctor| {
1003- !( ctor. is_doc_hidden_variant ( pcx) || ctor. is_unstable_variant ( pcx) )
1004- } ) ) ;
1005- if * non_exhaustive {
1006- missing. push ( NonExhaustive ) ;
1007- }
1008- }
10091001 ConstructorSet :: Variants { variants, non_exhaustive } => {
10101002 let seen_set: FxHashSet < _ > = seen. iter ( ) . map ( |c| c. as_variant ( ) . unwrap ( ) ) . collect ( ) ;
10111003 let mut skipped_any_missing_variant = false ;
@@ -1028,16 +1020,6 @@ impl ConstructorSet {
10281020 missing. push ( NonExhaustive ) ;
10291021 }
10301022 }
1031- ConstructorSet :: Integers { range_1, range_2, non_exhaustive } if seen. is_empty ( ) => {
1032- if * non_exhaustive {
1033- missing. push ( NonExhaustive ) ;
1034- } else {
1035- missing. push ( IntRange ( range_1. clone ( ) ) ) ;
1036- if let Some ( range_2) = range_2 {
1037- missing. push ( IntRange ( range_2. clone ( ) ) ) ;
1038- }
1039- }
1040- }
10411023 ConstructorSet :: Integers { range_1, range_2, non_exhaustive } => {
10421024 let range = match range_2 {
10431025 None => SplitIntRange :: Single ( range_1. clone ( ) ) ,
@@ -1055,9 +1037,6 @@ impl ConstructorSet {
10551037 missing. push ( NonExhaustive ) ;
10561038 }
10571039 }
1058- & ConstructorSet :: Slice ( array_len) if seen. is_empty ( ) => {
1059- missing. push ( Slice ( Slice :: new ( array_len, VarLen ( 0 , 0 ) ) ) ) ;
1060- }
10611040 & ConstructorSet :: Slice ( array_len) => {
10621041 let seen_slices = seen. iter ( ) . map ( |c| c. as_slice ( ) . unwrap ( ) ) . map ( |s| s. kind ) ;
10631042 for ( seen, splitted_slice) in SplitVarLenSlice :: split ( array_len, seen_slices) {
0 commit comments