@@ -185,7 +185,7 @@ pub fn _box(x: Box<i32>) -> Box<i32> {
185185// With a custom allocator, it should *not* have `noalias`. (See
186186// <https://github.com/rust-lang/miri/issues/3341> for why.) The second argument is the allocator,
187187// which is a reference here that still carries `noalias` as usual.
188- // CHECK: @_box_custom(ptr noundef nonnull align 4 %x.0, ptr noalias noundef nonnull readonly align 1 {{( captures\(address, read_provenance\))?}} %x.1)
188+ // CHECK: @_box_custom(ptr noundef nonnull align 4 %x.0, ptr noalias noundef nonnull readonly{{( captures\(address, read_provenance\))?}} %x.1)
189189#[ no_mangle]
190190pub fn _box_custom ( x : Box < i32 , & std:: alloc:: Global > ) {
191191 drop ( x)
@@ -209,14 +209,14 @@ pub fn struct_return() -> S {
209209pub fn helper ( _: usize ) { }
210210
211211// CHECK: @slice(
212- // CHECK-SAME: ptr noalias noundef nonnull readonly align 1 {{( captures\(address, read_provenance\))?}} %_1.0,
212+ // CHECK-SAME: ptr noalias noundef nonnull readonly{{( captures\(address, read_provenance\))?}} %_1.0,
213213// CHECK-SAME: [[USIZE]] noundef range({{i32 0, -2147483648|i64 0, -9223372036854775808}}) %_1.1)
214214// FIXME #25759 This should also have `nocapture`
215215#[ no_mangle]
216216pub fn slice ( _: & [ u8 ] ) { }
217217
218218// CHECK: @mutable_slice(
219- // CHECK-SAME: ptr noalias noundef nonnull align 1 %_1.0,
219+ // CHECK-SAME: ptr noalias noundef nonnull %_1.0,
220220// CHECK-SAME: [[USIZE]] noundef range({{i32 0, -2147483648|i64 0, -9223372036854775808}}) %_1.1)
221221// FIXME #25759 This should also have `nocapture`
222222#[ no_mangle]
@@ -234,22 +234,22 @@ pub fn unsafe_slice(_: &[UnsafeInner]) {}
234234pub fn raw_slice ( _: * const [ u8 ] ) { }
235235
236236// CHECK: @str(
237- // CHECK-SAME: ptr noalias noundef nonnull readonly align 1 {{( captures\(address, read_provenance\))?}} %_1.0,
237+ // CHECK-SAME: ptr noalias noundef nonnull readonly{{( captures\(address, read_provenance\))?}} %_1.0,
238238// CHECK-SAME: [[USIZE]] noundef range({{i32 0, -2147483648|i64 0, -9223372036854775808}}) %_1.1)
239239// FIXME #25759 This should also have `nocapture`
240240#[ no_mangle]
241241pub fn str ( _: & [ u8 ] ) { }
242242
243- // CHECK: @trait_borrow(ptr noundef nonnull align 1 %_1.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
243+ // CHECK: @trait_borrow(ptr noundef nonnull %_1.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
244244// FIXME #25759 This should also have `nocapture`
245245#[ no_mangle]
246246pub fn trait_borrow ( _: & dyn Drop ) { }
247247
248- // CHECK: @option_trait_borrow(ptr noundef align 1 %x.0, ptr %x.1)
248+ // CHECK: @option_trait_borrow(ptr noundef %x.0, ptr %x.1)
249249#[ no_mangle]
250250pub fn option_trait_borrow ( x : Option < & dyn Drop > ) { }
251251
252- // CHECK: @option_trait_borrow_mut(ptr noundef align 1 %x.0, ptr %x.1)
252+ // CHECK: @option_trait_borrow_mut(ptr noundef %x.0, ptr %x.1)
253253#[ no_mangle]
254254pub fn option_trait_borrow_mut ( x : Option < & mut dyn Drop > ) { }
255255
@@ -259,13 +259,13 @@ pub fn trait_raw(_: *const dyn Drop) {}
259259
260260// Ensure that `Box` gets `noalias` when the right traits are present, but removing *either* `Unpin`
261261// or `UnsafeUnpin` is enough to lose the attribute.
262- // CHECK: @trait_box(ptr noalias noundef nonnull align 1 {{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
262+ // CHECK: @trait_box(ptr noalias noundef nonnull{{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
263263#[ no_mangle]
264264pub fn trait_box ( _: Box < dyn Drop + Unpin + UnsafeUnpin > ) { }
265- // CHECK: @trait_box_pin1(ptr noundef nonnull align 1 {{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
265+ // CHECK: @trait_box_pin1(ptr noundef nonnull{{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
266266#[ no_mangle]
267267pub fn trait_box_pin1 ( _: Box < dyn Drop + Unpin > ) { }
268- // CHECK: @trait_box_pin2(ptr noundef nonnull align 1 {{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
268+ // CHECK: @trait_box_pin2(ptr noundef nonnull{{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
269269#[ no_mangle]
270270pub fn trait_box_pin2 ( _: Box < dyn Drop + UnsafeUnpin > ) { }
271271
@@ -281,7 +281,7 @@ pub fn trait_mutref_pin1(_: &mut (i32, dyn Drop + Unpin)) {}
281281#[ no_mangle]
282282pub fn trait_mutref_pin2 ( _: & mut ( i32 , dyn Drop + UnsafeUnpin ) ) { }
283283
284- // CHECK: { ptr, ptr } @trait_option(ptr noalias noundef align 1 %x.0, ptr %x.1)
284+ // CHECK: { ptr, ptr } @trait_option(ptr noalias noundef %x.0, ptr %x.1)
285285#[ no_mangle]
286286pub fn trait_option (
287287 x : Option < Box < dyn Drop + Unpin + UnsafeUnpin > > ,
0 commit comments