Skip to content

Commit d80cf80

Browse files
committed
Update codegen test with new attributes
1 parent 7af3406 commit d80cf80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/codegen/function-arguments.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ pub fn unsafe_slice(_: &[UnsafeInner]) {
121121
fn str(_: &[u8]) {
122122
}
123123

124-
// CHECK: @trait_borrow(i8* nonnull, void (i8*)** nonnull)
124+
// CHECK: @trait_borrow(i8* nonnull, void (i8*)** noalias nonnull readonly)
125125
// FIXME #25759 This should also have `nocapture`
126126
#[no_mangle]
127127
fn trait_borrow(_: &Drop) {
128128
}
129129

130-
// CHECK: @trait_box(i8* noalias nonnull, void (i8*)** nonnull)
130+
// CHECK: @trait_box(i8* noalias nonnull, void (i8*)** noalias nonnull readonly)
131131
#[no_mangle]
132132
fn trait_box(_: Box<Drop>) {
133133
}

0 commit comments

Comments
 (0)