From e611ef32f8c7edc20238cec32aa96646539ef561 Mon Sep 17 00:00:00 2001 From: klensy Date: Mon, 10 Nov 2025 13:40:47 +0300 Subject: [PATCH 1/2] fix filecheck typos in tests --- tests/codegen-llvm/deduced-param-attrs.rs | 2 +- tests/mir-opt/gvn_loop.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/codegen-llvm/deduced-param-attrs.rs b/tests/codegen-llvm/deduced-param-attrs.rs index eec15a434645e..968325f7dc62d 100644 --- a/tests/codegen-llvm/deduced-param-attrs.rs +++ b/tests/codegen-llvm/deduced-param-attrs.rs @@ -100,7 +100,7 @@ pub static A1: fn(BigCell) = shared_borrow; // // CHECK-LABEL: ; deduced_param_attrs::raw_const_borrow // CHECK-NOT: readonly -// CHECK-NEXT : %a) +// CHECK-NEXT: %a) #[inline(never)] pub fn raw_const_borrow(a: Big) { black_box(&raw const a); diff --git a/tests/mir-opt/gvn_loop.rs b/tests/mir-opt/gvn_loop.rs index 4a94d516cca23..ce23f7930f1b1 100644 --- a/tests/mir-opt/gvn_loop.rs +++ b/tests/mir-opt/gvn_loop.rs @@ -16,9 +16,9 @@ fn loop_deref_mut(val: &mut Value) -> Value { // CHECK-LABEL: fn loop_deref_mut( // CHECK: [[VAL_REF:_.*]] = get::( // CHECK: [[V:_.*]] = copy (((*[[VAL_REF]]) as V0).0: i32); - // CEHCK-NOT: copy (*[[VAL_REF]]); + // CHECK-NOT: copy (*[[VAL_REF]]); // CHECK: [[RET:_*]] = Value::V0(copy [[V]]); - // CEHCK-NOT: copy (*[[VAL_REF]]); + // CHECK-NOT: copy (*[[VAL_REF]]); // CHECK: _0 = move [[RET]] let val_alias: &Value = get(val); let mut stop = false; From ecb0d3bfbd1f8c6cc27bd4a52bac093fa5a24b52 Mon Sep 17 00:00:00 2001 From: klensy Date: Tue, 11 Nov 2025 12:31:37 +0300 Subject: [PATCH 2/2] Update tests/codegen-llvm/deduced-param-attrs.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tomasz Miąsko --- tests/codegen-llvm/deduced-param-attrs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/codegen-llvm/deduced-param-attrs.rs b/tests/codegen-llvm/deduced-param-attrs.rs index 968325f7dc62d..b24c74a2f8403 100644 --- a/tests/codegen-llvm/deduced-param-attrs.rs +++ b/tests/codegen-llvm/deduced-param-attrs.rs @@ -99,6 +99,7 @@ pub static A1: fn(BigCell) = shared_borrow; // The parameter can be mutated through a raw const borrow. // // CHECK-LABEL: ; deduced_param_attrs::raw_const_borrow +// CHECK-NEXT: ; // CHECK-NOT: readonly // CHECK-NEXT: %a) #[inline(never)]