@@ -267,7 +267,6 @@ and 'loc t' =
267
267
| EOptionalChainingMethods of 'loc
268
268
| EUnnecessaryOptionalChain of 'loc * 'loc virtual_reason
269
269
| EUnnecessaryInvariant of 'loc * 'loc virtual_reason
270
- | EInexactSpread of 'loc virtual_reason * 'loc virtual_reason
271
270
| EUnexpectedTemporaryBaseType of 'loc
272
271
| ECannotDelete of 'loc * 'loc virtual_reason
273
272
| EBigIntNotYetSupported of 'loc virtual_reason
@@ -734,7 +733,6 @@ let rec map_loc_of_error_message (f : 'a -> 'b) : 'a t' -> 'b t' =
734
733
| EOptionalChainingMethods loc -> EOptionalChainingMethods (f loc)
735
734
| EUnnecessaryOptionalChain (loc , r ) -> EUnnecessaryOptionalChain (f loc, map_reason r)
736
735
| EUnnecessaryInvariant (loc , r ) -> EUnnecessaryInvariant (f loc, map_reason r)
737
- | EInexactSpread (r1 , r2 ) -> EInexactSpread (map_reason r1, map_reason r2)
738
736
| EUnexpectedTemporaryBaseType loc -> EUnexpectedTemporaryBaseType (f loc)
739
737
| ECannotDelete (l1 , r1 ) -> ECannotDelete (f l1, map_reason r1)
740
738
| EBigIntNotYetSupported r -> EBigIntNotYetSupported (map_reason r)
@@ -980,7 +978,6 @@ let util_use_op_of_msg nope util = function
980
978
| EOptionalChainingMethods _
981
979
| EUnnecessaryOptionalChain _
982
980
| EUnnecessaryInvariant _
983
- | EInexactSpread _
984
981
| EUnexpectedTemporaryBaseType _
985
982
| ECannotDelete _
986
983
| EBigIntNotYetSupported _
@@ -1011,7 +1008,6 @@ let loc_of_msg : 'loc t' -> 'loc option = function
1011
1008
| EComparison (primary, _)
1012
1009
| EFunPredCustom ((primary, _), _)
1013
1010
| EDynamicExport (_, primary)
1014
- | EInexactSpread (_, primary)
1015
1011
| EInvalidTypeArgs (_, primary)
1016
1012
| ETooFewTypeArgs (primary, _, _)
1017
1013
| ETooManyTypeArgs (primary , _ , _ ) ->
@@ -1226,7 +1222,6 @@ let kind_of_msg =
1226
1222
| ESketchyNumberLint (kind , _ ) -> LintError (Lints. SketchyNumber kind)
1227
1223
| EUnnecessaryOptionalChain _ -> LintError Lints. UnnecessaryOptionalChain
1228
1224
| EUnnecessaryInvariant _ -> LintError Lints. UnnecessaryInvariant
1229
- | EInexactSpread _ -> LintError Lints. InexactSpread
1230
1225
| ESignatureVerification _ -> LintError Lints. SignatureVerificationFailure
1231
1226
| EImplicitInexactObject _ -> LintError Lints. ImplicitInexactObject
1232
1227
| EAmbiguousObjectType _ -> LintError Lints. AmbiguousObjectType
@@ -2717,22 +2712,6 @@ let friendly_message_of_msg : Loc.t t' -> Loc.t friendly_message_recipe =
2717
2712
]
2718
2713
in
2719
2714
Normal { features }
2720
- | EInexactSpread (reason , reason_op ) ->
2721
- let features =
2722
- [
2723
- text " Cannot determine the type of " ;
2724
- ref reason_op;
2725
- text " because " ;
2726
- text " it contains a spread of inexact " ;
2727
- ref reason;
2728
- text " . " ;
2729
- text " Being inexact, " ;
2730
- ref reason;
2731
- text " might be missing the types of some properties that are being copied. " ;
2732
- text " Perhaps you could make it exact?" ;
2733
- ]
2734
- in
2735
- Normal { features }
2736
2715
| EBigIntNotYetSupported reason ->
2737
2716
Normal { features = [text " BigInt " ; ref reason; text " is not yet supported." ] }
2738
2717
| ECannotSpreadInterface { spread_reason; interface_reason } ->
@@ -3027,7 +3006,6 @@ let is_lint_error = function
3027
3006
| EUnsafeGettersSetters _
3028
3007
| ESketchyNullLint _
3029
3008
| ESketchyNumberLint _
3030
- | EInexactSpread _
3031
3009
| EBigIntNotYetSupported _
3032
3010
| EUnnecessaryOptionalChain _
3033
3011
| EUnnecessaryInvariant _
0 commit comments