Skip to content

Commit f6f02bc

Browse files
authored
chore(stdlib)!: Remove cons and empty from Pervasives (#1657)
1 parent 17cb28d commit f6f02bc

File tree

219 files changed

+1586
-1659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+1586
-1659
lines changed

compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ arrays › array_access
1515
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1616
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32)))
18-
(global $x_1116 (mut i32) (i32.const 0))
18+
(global $x_1110 (mut i32) (i32.const 0))
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(elem $elem (global.get $relocBase_0))
2121
(export \"memory\" (memory $0))
@@ -44,7 +44,7 @@ arrays › array_access
4444
(local.set $0
4545
(block $compile_block.10 (result i32)
4646
(block $compile_store.3
47-
(global.set $x_1116
47+
(global.set $x_1110
4848
(tuple.extract 0
4949
(tuple.make
5050
(block $allocate_array.1 (result i32)
@@ -77,7 +77,7 @@ arrays › array_access
7777
)
7878
(call $decRef_0
7979
(global.get $GRAIN$EXPORT$decRef_0)
80-
(global.get $x_1116)
80+
(global.get $x_1110)
8181
)
8282
)
8383
)
@@ -90,7 +90,7 @@ arrays › array_access
9090
(i32.const 1)
9191
)
9292
(local.set $2
93-
(global.get $x_1116)
93+
(global.get $x_1110)
9494
)
9595
(block $resolve_idx.8
9696
(if

compiler/test/__snapshots__/arrays.28fcc534.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ arrays › array_access4
1515
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1616
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32)))
18-
(global $x_1116 (mut i32) (i32.const 0))
18+
(global $x_1110 (mut i32) (i32.const 0))
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(elem $elem (global.get $relocBase_0))
2121
(export \"memory\" (memory $0))
@@ -44,7 +44,7 @@ arrays › array_access4
4444
(local.set $0
4545
(block $compile_block.10 (result i32)
4646
(block $compile_store.3
47-
(global.set $x_1116
47+
(global.set $x_1110
4848
(tuple.extract 0
4949
(tuple.make
5050
(block $allocate_array.1 (result i32)
@@ -77,7 +77,7 @@ arrays › array_access4
7777
)
7878
(call $decRef_0
7979
(global.get $GRAIN$EXPORT$decRef_0)
80-
(global.get $x_1116)
80+
(global.get $x_1110)
8181
)
8282
)
8383
)
@@ -90,7 +90,7 @@ arrays › array_access4
9090
(i32.const -3)
9191
)
9292
(local.set $2
93-
(global.get $x_1116)
93+
(global.get $x_1110)
9494
)
9595
(block $resolve_idx.8
9696
(if

compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ arrays › array_access2
1515
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1616
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32)))
18-
(global $x_1116 (mut i32) (i32.const 0))
18+
(global $x_1110 (mut i32) (i32.const 0))
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(elem $elem (global.get $relocBase_0))
2121
(export \"memory\" (memory $0))
@@ -44,7 +44,7 @@ arrays › array_access2
4444
(local.set $0
4545
(block $compile_block.10 (result i32)
4646
(block $compile_store.3
47-
(global.set $x_1116
47+
(global.set $x_1110
4848
(tuple.extract 0
4949
(tuple.make
5050
(block $allocate_array.1 (result i32)
@@ -77,7 +77,7 @@ arrays › array_access2
7777
)
7878
(call $decRef_0
7979
(global.get $GRAIN$EXPORT$decRef_0)
80-
(global.get $x_1116)
80+
(global.get $x_1110)
8181
)
8282
)
8383
)
@@ -90,7 +90,7 @@ arrays › array_access2
9090
(i32.const 3)
9191
)
9292
(local.set $2
93-
(global.get $x_1116)
93+
(global.get $x_1110)
9494
)
9595
(block $resolve_idx.8
9696
(if

compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ arrays › array_access3
1515
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1616
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32)))
18-
(global $x_1116 (mut i32) (i32.const 0))
18+
(global $x_1110 (mut i32) (i32.const 0))
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(elem $elem (global.get $relocBase_0))
2121
(export \"memory\" (memory $0))
@@ -44,7 +44,7 @@ arrays › array_access3
4444
(local.set $0
4545
(block $compile_block.10 (result i32)
4646
(block $compile_store.3
47-
(global.set $x_1116
47+
(global.set $x_1110
4848
(tuple.extract 0
4949
(tuple.make
5050
(block $allocate_array.1 (result i32)
@@ -77,7 +77,7 @@ arrays › array_access3
7777
)
7878
(call $decRef_0
7979
(global.get $GRAIN$EXPORT$decRef_0)
80-
(global.get $x_1116)
80+
(global.get $x_1110)
8181
)
8282
)
8383
)
@@ -90,7 +90,7 @@ arrays › array_access3
9090
(i32.const 5)
9191
)
9292
(local.set $2
93-
(global.get $x_1116)
93+
(global.get $x_1110)
9494
)
9595
(block $resolve_idx.8
9696
(if

compiler/test/__snapshots__/arrays.74d79181.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ arrays › array_access5
1515
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
1616
(import \"GRAIN$MODULE$runtime/gc\" \"decRef\" (func $decRef_0 (param i32 i32) (result i32)))
1717
(import \"GRAIN$MODULE$runtime/exception\" \"panicWithException\" (func $panicWithException_0 (param i32 i32) (result i32)))
18-
(global $x_1116 (mut i32) (i32.const 0))
18+
(global $x_1110 (mut i32) (i32.const 0))
1919
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
2020
(elem $elem (global.get $relocBase_0))
2121
(export \"memory\" (memory $0))
@@ -44,7 +44,7 @@ arrays › array_access5
4444
(local.set $0
4545
(block $compile_block.10 (result i32)
4646
(block $compile_store.3
47-
(global.set $x_1116
47+
(global.set $x_1110
4848
(tuple.extract 0
4949
(tuple.make
5050
(block $allocate_array.1 (result i32)
@@ -77,7 +77,7 @@ arrays › array_access5
7777
)
7878
(call $decRef_0
7979
(global.get $GRAIN$EXPORT$decRef_0)
80-
(global.get $x_1116)
80+
(global.get $x_1110)
8181
)
8282
)
8383
)
@@ -90,7 +90,7 @@ arrays › array_access5
9090
(i32.const -5)
9191
)
9292
(local.set $2
93-
(global.get $x_1116)
93+
(global.get $x_1110)
9494
)
9595
(block $resolve_idx.8
9696
(if

compiler/test/__snapshots__/basic_functionality.0996c5f7.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › modulo4
99
(import \"_genv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1116 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1116 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -39,10 +39,10 @@ basic functionality › modulo4
3939
(block $cleanup_locals.2 (result i32)
4040
(local.set $0
4141
(block $compile_block.1 (result i32)
42-
(call $%_1116
42+
(call $%_1110
4343
(call $incRef_0
4444
(global.get $GRAIN$EXPORT$incRef_0)
45-
(global.get $%_1116)
45+
(global.get $%_1110)
4646
)
4747
(i32.const -33)
4848
(i32.const 35)

compiler/test/__snapshots__/basic_functionality.0a230f18.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › land4
99
(import \"_genv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1116 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$&\" (global $&_1110 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1116 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"&\" (func $&_1110 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -39,10 +39,10 @@ basic functionality › land4
3939
(block $cleanup_locals.2 (result i32)
4040
(local.set $0
4141
(block $compile_block.1 (result i32)
42-
(call $&_1116
42+
(call $&_1110
4343
(call $incRef_0
4444
(global.get $GRAIN$EXPORT$incRef_0)
45-
(global.get $&_1116)
45+
(global.get $&_1110)
4646
)
4747
(i32.const 1)
4848
(i32.const 1)

compiler/test/__snapshots__/basic_functionality.0a2e4afa.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › lxor1
99
(import \"_genv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1116 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$^\" (global $^_1110 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1116 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"^\" (func $^_1110 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -39,10 +39,10 @@ basic functionality › lxor1
3939
(block $cleanup_locals.2 (result i32)
4040
(local.set $0
4141
(block $compile_block.1 (result i32)
42-
(call $^_1116
42+
(call $^_1110
4343
(call $incRef_0
4444
(global.get $GRAIN$EXPORT$incRef_0)
45-
(global.get $^_1116)
45+
(global.get $^_1110)
4646
)
4747
(i32.const 3)
4848
(i32.const 3)

compiler/test/__snapshots__/basic_functionality.0c0b170b.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › lor1
99
(import \"_genv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1116 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$|\" (global $|_1110 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1116 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"|\" (func $|_1110 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -39,10 +39,10 @@ basic functionality › lor1
3939
(block $cleanup_locals.2 (result i32)
4040
(local.set $0
4141
(block $compile_block.1 (result i32)
42-
(call $|_1116
42+
(call $|_1110
4343
(call $incRef_0
4444
(global.get $GRAIN$EXPORT$incRef_0)
45-
(global.get $|_1116)
45+
(global.get $|_1110)
4646
)
4747
(i32.const 3)
4848
(i32.const 3)

compiler/test/__snapshots__/basic_functionality.0c400bde.0.snapshot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ basic functionality › modulo6
99
(import \"_genv\" \"relocBase\" (global $relocBase_0 i32))
1010
(import \"_genv\" \"moduleRuntimeId\" (global $moduleRuntimeId_0 i32))
1111
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$incRef\" (global $GRAIN$EXPORT$incRef_0 (mut i32)))
12-
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1116 (mut i32)))
12+
(import \"GRAIN$MODULE$pervasives\" \"GRAIN$EXPORT$%\" (global $%_1110 (mut i32)))
1313
(import \"GRAIN$MODULE$runtime/gc\" \"incRef\" (func $incRef_0 (param i32 i32) (result i32)))
14-
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1116 (param i32 i32 i32) (result i32)))
14+
(import \"GRAIN$MODULE$pervasives\" \"%\" (func $%_1110 (param i32 i32 i32) (result i32)))
1515
(global $GRAIN$TABLE_SIZE i32 (i32.const 0))
1616
(elem $elem (global.get $relocBase_0))
1717
(export \"memory\" (memory $0))
@@ -39,10 +39,10 @@ basic functionality › modulo6
3939
(block $cleanup_locals.2 (result i32)
4040
(local.set $0
4141
(block $compile_block.1 (result i32)
42-
(call $%_1116
42+
(call $%_1110
4343
(call $incRef_0
4444
(global.get $GRAIN$EXPORT$incRef_0)
45-
(global.get $%_1116)
45+
(global.get $%_1110)
4646
)
4747
(i32.const 35)
4848
(i32.const 35)

0 commit comments

Comments
 (0)