Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/codegen-llvm/deduced-param-attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ 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)
// CHECK-NEXT: %a)
#[inline(never)]
pub fn raw_const_borrow(a: Big) {
black_box(&raw const a);
Expand Down
4 changes: 2 additions & 2 deletions tests/mir-opt/gvn_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fn loop_deref_mut(val: &mut Value) -> Value {
// CHECK-LABEL: fn loop_deref_mut(
// CHECK: [[VAL_REF:_.*]] = get::<Value>(
// 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;
Expand Down
Loading