Skip to content

Commit 8d1217d

Browse files
Fix rebase
1 parent 0073135 commit 8d1217d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

compiler-core/src/inline.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,14 @@ impl Inliner<'_> {
466466
TypedExpr::RecordUpdate {
467467
location,
468468
type_,
469-
record,
469+
record_assignment,
470470
constructor,
471471
args,
472472
} => TypedExpr::RecordUpdate {
473473
location,
474474
type_,
475-
record: Box::new(self.assignment(*record)),
475+
record_assignment: record_assignment
476+
.map(|assignment| Box::new(self.assignment(*assignment))),
476477
constructor: self.boxed_expression(constructor),
477478
args,
478479
},

test-package-compiler/src/snapshots/test_package_compiler__generated_tests__imported_record_constructors.snap

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
source: test-package-compiler/src/generated_tests.rs
3-
assertion_line: 217
43
expression: "./cases/imported_record_constructors"
5-
snapshot_kind: text
64
---
75
//// /out/lib/the_package/_gleam_artefacts/[email protected]
86
<.cache binary>
97

8+
//// /out/lib/the_package/_gleam_artefacts/[email protected]_inline
9+
<8 byte binary>
10+
1011
//// /out/lib/the_package/_gleam_artefacts/[email protected]_meta
1112
<97 byte binary>
1213

@@ -28,6 +29,9 @@ snapshot_kind: text
2829
//// /out/lib/the_package/_gleam_artefacts/[email protected]
2930
<.cache binary>
3031

32+
//// /out/lib/the_package/_gleam_artefacts/[email protected]_inline
33+
<8 byte binary>
34+
3135
//// /out/lib/the_package/_gleam_artefacts/[email protected]_meta
3236
<97 byte binary>
3337

@@ -49,6 +53,9 @@ snapshot_kind: text
4953
//// /out/lib/the_package/_gleam_artefacts/two.cache
5054
<.cache binary>
5155

56+
//// /out/lib/the_package/_gleam_artefacts/two.cache_inline
57+
<8 byte binary>
58+
5259
//// /out/lib/the_package/_gleam_artefacts/two.cache_meta
5360
<499 byte binary>
5461

0 commit comments

Comments
 (0)