Skip to content

Commit 263fa26

Browse files
authored
flambda-backend: Make -extension immutable_arrays on by default (#1829)
1 parent 9cca7d2 commit 263fa26

15 files changed

+6
-26
lines changed

testsuite/tests/array-functions/test_iarray.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
*)
43

54
module Iarray = Stdlib__Iarray

testsuite/tests/comprehensions/comprehensions_from_quickcheck.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* TEST
2-
flags = "-extension comprehensions -extension immutable_arrays"
2+
flags = "-extension comprehensions"
33
* expect
44
*)
55

testsuite/tests/comprehensions/iarray_comprehensions_pure.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* TEST
2-
flags = "-extension comprehensions -extension immutable_arrays"
2+
flags = "-extension comprehensions"
33
* expect
44
*)
55

testsuite/tests/comprehensions/iarray_comprehensions_require_immutable_arrays.compilers.reference

Lines changed: 0 additions & 4 deletions
This file was deleted.

testsuite/tests/comprehensions/iarray_comprehensions_require_immutable_arrays.ml

Lines changed: 0 additions & 9 deletions
This file was deleted.

testsuite/tests/comprehensions/iarray_comprehensions_side_effects.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* TEST
2-
flags = "-extension comprehensions -extension immutable_arrays"
2+
flags = "-extension comprehensions"
33
*)
44

55
module Iarray = Stdlib__Iarray

testsuite/tests/comprehensions/iarray_comprehensions_special.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* TEST
2-
flags = "-extension comprehensions -extension immutable_arrays"
2+
flags = "-extension comprehensions"
33
* expect
44
*)
55

testsuite/tests/comprehensions/quickcheck_lists_arrays_haskell_python.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,6 @@ module Interactive_command = struct
11281128
command
11291129
"../../../ocaml"
11301130
[ "-extension"; "comprehensions"
1131-
; "-extension"; "immutable_arrays"
11321131
; "-noprompt"; "-no-version"
11331132
; "-w"; "no-unused-var" ]
11341133
~setup:(fun output ->
@@ -1165,7 +1164,7 @@ module Log_test_cases = struct
11651164
try
11661165
output_string oc
11671166
{|(* TEST
1168-
flags = "-extension comprehensions -extension immutable_arrays"
1167+
flags = "-extension comprehensions"
11691168
* expect
11701169
*)
11711170

testsuite/tests/lib-array/iarray_singleton.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* native
43
*)
54

testsuite/tests/lib-array/iarrays_with_variables.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* expect
43
*)
54

testsuite/tests/lib-array/test_iarray.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* expect
43
*)
54

testsuite/tests/typing-local/float_iarray.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* bytecode
43
reference = "${test_source_directory}/float_iarray.heap.reference"
54
* stack-allocation

testsuite/tests/typing-local/iarray.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* bytecode
43
reference = "${test_source_directory}/iarray.heap.reference"
54
* stack-allocation

testsuite/tests/typing-local/local.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(* TEST
2-
flags = "-extension immutable_arrays"
32
* expect *)
43

54
let leak n =

utils/language_extension.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ let default_extensions : extn_pair list =
177177
[ Pair (Local, ())
178178
; Pair (Include_functor, ())
179179
; Pair (Polymorphic_parameters, ())
180+
; Pair (Immutable_arrays, ())
180181
]
181182
let extensions : extn_pair list ref = ref default_extensions
182183

0 commit comments

Comments
 (0)