From 07ff935446092fd0fc523549fa34e6366728e11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Tue, 16 Jun 2026 14:06:27 +0200 Subject: [PATCH 1/2] test(hir): add byte_offset to Expr::Call inits in cheerio_call_rewrite (fix main test compile after #5250) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #5250 added Expr::Call.byte_offset but missed this integration test → cargo test -p perry-hir failed to compile on main. Add byte_offset: 0 to the 3 Expr::Call constructions. --- crates/perry-hir/tests/cheerio_call_rewrite.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/perry-hir/tests/cheerio_call_rewrite.rs b/crates/perry-hir/tests/cheerio_call_rewrite.rs index 3390c19ea6..7cd5aa2743 100644 --- a/crates/perry-hir/tests/cheerio_call_rewrite.rs +++ b/crates/perry-hir/tests/cheerio_call_rewrite.rs @@ -105,6 +105,7 @@ fn non_native_fluent_chains_are_walked_linearly() { return_type: Type::Any, }], type_args: Vec::new(), + byte_offset: 0, }; for i in 0..32 { @@ -119,6 +120,7 @@ fn non_native_fluent_chains_are_walked_linearly() { return_type: Type::Any, }], type_args: Vec::new(), + byte_offset: 0, }; } @@ -129,6 +131,7 @@ fn non_native_fluent_chains_are_walked_linearly() { }), args: Vec::new(), type_args: Vec::new(), + byte_offset: 0, }; let mut module = Module::new("non-native-fluent-chain"); From 757b563a062b4bac53d3d15f069f770eddd2d870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Tue, 16 Jun 2026 14:32:01 +0200 Subject: [PATCH 2/2] =?UTF-8?q?test(hir):=20rustfmt=20=E2=80=94=20indent?= =?UTF-8?q?=20byte=5Foffset=20in=20loop-body=20Expr::Call=20(fix=20lint)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/perry-hir/tests/cheerio_call_rewrite.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/perry-hir/tests/cheerio_call_rewrite.rs b/crates/perry-hir/tests/cheerio_call_rewrite.rs index 7cd5aa2743..b3903bd264 100644 --- a/crates/perry-hir/tests/cheerio_call_rewrite.rs +++ b/crates/perry-hir/tests/cheerio_call_rewrite.rs @@ -120,7 +120,7 @@ fn non_native_fluent_chains_are_walked_linearly() { return_type: Type::Any, }], type_args: Vec::new(), - byte_offset: 0, + byte_offset: 0, }; }