Skip to content

Commit 1a9c2e3

Browse files
committed
Remove PervasivesU.
1 parent 6798410 commit 1a9c2e3

File tree

9 files changed

+5
-1674
lines changed

9 files changed

+5
-1674
lines changed

jscomp/gentype/TranslateTypeExprFromTypes.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
119119
{param_translation with type_ = Array (param_translation.type_, Mutable)}
120120
| ["ImmutableArray"; "t"], [param_translation] ->
121121
{param_translation with type_ = Array (param_translation.type_, Immutable)}
122-
| [("Pervasives" | "PervasivesU"); "ref"], [param_translation] ->
122+
| ["Pervasives"; "ref"], [param_translation] ->
123123
{
124124
dependencies = param_translation.dependencies;
125125
type_ =
@@ -217,7 +217,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
217217
| ( ( ["React"; "element"]
218218
| ["ReactV3"; "React"; "element"]
219219
| ["ReasonReact"; "reactElement"]
220-
| [("Pervasives" | "PervasivesU"); "Jsx"; "element"] ),
220+
| ["Pervasives"; "Jsx"; "element"] ),
221221
[] ) ->
222222
{dependencies = []; type_ = EmitType.type_react_element}
223223
| (["FB"; "option"] | ["option"]), [param_translation] ->

jscomp/ml/printtyp.ml

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ let ident ppf id = pp_print_string ppf (ident_name id)
5151
(* Print a path *)
5252

5353
let ident_pervasives = Ident.create_persistent "Pervasives"
54-
let ident_pervasives_u = Ident.create_persistent "PervasivesU"
5554
let printing_env = ref Env.empty
5655
let non_shadowed_pervasive = function
5756
| Pdot(Pident id, s, _pos) as path ->
58-
(Ident.same id ident_pervasives || Ident.same id ident_pervasives_u) &&
57+
(Ident.same id ident_pervasives) &&
5958
(try Path.same path (Env.lookup_type (Lident s) !printing_env)
6059
with Not_found -> true)
6160
| _ -> false

jscomp/stdlib-406/pervasivesU.res

-321
This file was deleted.

0 commit comments

Comments
 (0)