Skip to content

Commit 86e59cc

Browse files
committed
dont hardcode vtable size in codegen test
1 parent 5ba7633 commit 86e59cc

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
@@ -120,13 +120,13 @@ pub fn unsafe_slice(_: &[UnsafeInner]) {
120120
pub fn str(_: &[u8]) {
121121
}
122122

123-
// CHECK: @trait_borrow({}* nonnull %arg0.0, [4 x [[USIZE]]]* noalias readonly dereferenceable({{32|16}}) %arg0.1)
123+
// CHECK: @trait_borrow({}* nonnull %arg0.0, [4 x [[USIZE]]]* noalias readonly dereferenceable({{.*}}) %arg0.1)
124124
// FIXME #25759 This should also have `nocapture`
125125
#[no_mangle]
126126
pub fn trait_borrow(_: &Drop) {
127127
}
128128

129-
// CHECK: @trait_box({}* noalias nonnull, [4 x [[USIZE]]]* noalias readonly dereferenceable({{32|16}}))
129+
// CHECK: @trait_box({}* noalias nonnull, [4 x [[USIZE]]]* noalias readonly dereferenceable({{.*}}))
130130
#[no_mangle]
131131
pub fn trait_box(_: Box<Drop>) {
132132
}

0 commit comments

Comments
 (0)