Skip to content

Commit bd8e2d4

Browse files
committed
Promote tests
1 parent e309d55 commit bd8e2d4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/ocaml/preprocess/parser_raw.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ let rec mktailpat nilloc = let open Location in function
523523
let mkstrexp e attrs =
524524
{ pstr_desc = Pstr_eval (e, attrs); pstr_loc = e.pexp_loc }
525525

526-
(*let syntax_error () =
527-
raise Syntaxerr.Escape_error*)
526+
let _syntax_error () =
527+
raise Syntaxerr.Escape_error
528528

529529
let removed_string_set loc =
530530
raise_error Syntaxerr.(Error(Syntaxerr.Removed_string_set(make_loc loc)))

src/ocaml/preprocess/parser_raw.mly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ let rec mktailpat nilloc = let open Location in function
288288
let mkstrexp e attrs =
289289
{ pstr_desc = Pstr_eval (e, attrs); pstr_loc = e.pexp_loc }
290290

291-
(*let syntax_error () =
292-
raise Syntaxerr.Escape_error*)
291+
let _syntax_error () =
292+
raise Syntaxerr.Escape_error
293293

294294
let removed_string_set loc =
295295
raise_error Syntaxerr.(Error(Syntaxerr.Removed_string_set(make_loc loc)))

tests/test-dirs/type-enclosing/jane-street.t/run.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ escape characters in string literals, so we use the revert-newlines script.
6868

6969
type t6 : value = { v : int } [@@unboxed]
7070
^
71-
With verbosity 0: "type t6 : value = { v : int; } [@@unboxed]"
71+
With verbosity 0: "type t6 = { v : int; } [@@unboxed]"
7272
With verbosity 1: "type t6 : immediate = { v : int; } [@@unboxed]"
7373

7474

@@ -171,7 +171,7 @@ escape characters in string literals, so we use the revert-newlines script.
171171
let f6 (x : t6) = x
172172
^
173173
With verbosity 0: "t6"
174-
With verbosity 1: "type t6 : value = { v : int; } [@@unboxed]"
174+
With verbosity 1: "type t6 = { v : int; } [@@unboxed]"
175175

176176

177177
- type annotation
@@ -220,7 +220,7 @@ escape characters in string literals, so we use the revert-newlines script.
220220

221221
let f6 (x : t6) = x
222222
^
223-
With verbosity 0: "type t6 : value = { v : int; } [@@unboxed]"
223+
With verbosity 0: "type t6 = { v : int; } [@@unboxed]"
224224
With verbosity 1: "type t6 : immediate = { v : int; } [@@unboxed]"
225225

226226

0 commit comments

Comments
 (0)