@@ -998,14 +998,6 @@ impl ConstructorSet {
998
998
split. push ( Single ) ;
999
999
}
1000
1000
}
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
- }
1009
1001
ConstructorSet :: Variants { variants, non_exhaustive } => {
1010
1002
let seen_set: FxHashSet < _ > = seen. iter ( ) . map ( |c| c. as_variant ( ) . unwrap ( ) ) . collect ( ) ;
1011
1003
let mut skipped_any_missing_variant = false ;
@@ -1028,16 +1020,6 @@ impl ConstructorSet {
1028
1020
missing. push ( NonExhaustive ) ;
1029
1021
}
1030
1022
}
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
- }
1041
1023
ConstructorSet :: Integers { range_1, range_2, non_exhaustive } => {
1042
1024
let range = match range_2 {
1043
1025
None => SplitIntRange :: Single ( range_1. clone ( ) ) ,
@@ -1055,9 +1037,6 @@ impl ConstructorSet {
1055
1037
missing. push ( NonExhaustive ) ;
1056
1038
}
1057
1039
}
1058
- & ConstructorSet :: Slice ( array_len) if seen. is_empty ( ) => {
1059
- missing. push ( Slice ( Slice :: new ( array_len, VarLen ( 0 , 0 ) ) ) ) ;
1060
- }
1061
1040
& ConstructorSet :: Slice ( array_len) => {
1062
1041
let seen_slices = seen. iter ( ) . map ( |c| c. as_slice ( ) . unwrap ( ) ) . map ( |s| s. kind ) ;
1063
1042
for ( seen, splitted_slice) in SplitVarLenSlice :: split ( array_len, seen_slices) {
0 commit comments