Skip to content

Commit

Permalink
fix(compiler): Do not add transitive dependencies as imports during C…
Browse files Browse the repository at this point in the history
…RC consistency check (#830)
  • Loading branch information
peblair committed Aug 29, 2021
1 parent 92efd40 commit a1caacc
Show file tree
Hide file tree
Showing 303 changed files with 302 additions and 303 deletions.
1 change: 0 additions & 1 deletion compiler/src/typed/env.re
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ let check_consistency = ps =>
switch (crco) {
| None => ()
| Some(crc) =>
add_import(name);
let resolved_file_name =
Module_resolution.resolve_unit(
~base_dir=Filename.dirname(ps.ps_filename),
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,5 @@ arrays › array_access
(call $_gmain)
)
)
;; custom section \"cmi\", size 1006
;; custom section \"cmi\", size 244
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.24453e6e.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ arrays › array1_trailing
(call $_gmain)
)
)
;; custom section \"cmi\", size 1009
;; custom section \"cmi\", size 247
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.28fcc534.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ arrays › array_access4
(call $_gmain)
)
)
;; custom section \"cmi\", size 1007
;; custom section \"cmi\", size 245
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ arrays › array_access2
(call $_gmain)
)
)
;; custom section \"cmi\", size 1007
;; custom section \"cmi\", size 245
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ arrays › array_access3
(call $_gmain)
)
)
;; custom section \"cmi\", size 1007
;; custom section \"cmi\", size 245
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.74d79181.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ arrays › array_access5
(call $_gmain)
)
)
;; custom section \"cmi\", size 1007
;; custom section \"cmi\", size 245
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ arrays › array3
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
2 changes: 1 addition & 1 deletion compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ arrays › array1_trailing_space
(call $_gmain)
)
)
;; custom section \"cmi\", size 1015
;; custom section \"cmi\", size 253
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › binop2.4
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ basic functionality › neg
(call $_gmain)
)
)
;; custom section \"cmi\", size 997
;; custom section \"cmi\", size 235
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › comp5
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › modulo4
(call $_gmain)
)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › land4
(call $_gmain)
)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › lxor1
(call $_gmain)
)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › lor1
(call $_gmain)
)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › modulo6
(call $_gmain)
)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › precedence1
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1005
;; custom section \"cmi\", size 243
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › comp16
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › comp3
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › orshadow
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1002
;; custom section \"cmi\", size 240
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › precedence2
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1005
;; custom section \"cmi\", size 243
)
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ basic functionality › precedence3
(call $_gmain)
)
)
;; custom section \"cmi\", size 1005
;; custom section \"cmi\", size 243
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › binop4
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › lsl1
(call $_gmain)
)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ basic functionality › unsafe_wasm_globals
(call $_gmain)
)
)
;; custom section \"cmi\", size 1198
;; custom section \"cmi\", size 377
)
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ basic functionality › comp22
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › land1
(call $_gmain)
)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ basic functionality › orshort2
(call $_gmain)
)
)
;; custom section \"cmi\", size 1002
;; custom section \"cmi\", size 240
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › comp4
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › forty
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 999
;; custom section \"cmi\", size 237
)
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ basic functionality › precedence4
(call $_gmain)
)
)
;; custom section \"cmi\", size 1005
;; custom section \"cmi\", size 243
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › binop2
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › assert2
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › and2
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › lsl2
(call $_gmain)
)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › comp17
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › fals
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › oct_neg
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ basic functionality › complex2
(call $_gmain)
)
)
;; custom section \"cmi\", size 1002
;; custom section \"cmi\", size 240
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ basic functionality › int64_1
(call $_gmain)
)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ basic functionality › comp20
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › lor3
(call $_gmain)
)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ basic functionality › decr_3
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › orshort1
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1002
;; custom section \"cmi\", size 240
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › binop5
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › precedence5
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1005
;; custom section \"cmi\", size 243
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › if4
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 997
;; custom section \"cmi\", size 235
)
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ basic functionality › not1
(call $_gmain)
)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,5 @@ basic functionality › func_shadow
(call $_gmain)
)
)
;; custom section \"cmi\", size 1004
;; custom section \"cmi\", size 242
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › hex_neg
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › modulo5
(call $_gmain)
)
)
;; custom section \"cmi\", size 1001
;; custom section \"cmi\", size 239
)
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ basic functionality › if_one_sided6
(call $_gmain)
)
)
;; custom section \"cmi\", size 1007
;; custom section \"cmi\", size 245
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › and3
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 998
;; custom section \"cmi\", size 236
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ basic functionality › or4
(func $_start (; has Stack IR ;)
(nop)
)
;; custom section \"cmi\", size 997
;; custom section \"cmi\", size 235
)
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ basic functionality › binop6
(call $_gmain)
)
)
;; custom section \"cmi\", size 1000
;; custom section \"cmi\", size 238
)
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ basic functionality › block_no_expression
(call $_gmain)
)
)
;; custom section \"cmi\", size 1013
;; custom section \"cmi\", size 251
)
Loading

0 comments on commit a1caacc

Please sign in to comment.