Skip to content

Commit b93f48f

Browse files
committed
adjust for missing spans on x86 test runner
1 parent bf83ecf commit b93f48f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/test/ui/consts/offset_from_ub.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// ingoring on musl because it's ui output hides libcore backtraces
2-
// ignore-musl
1+
// ignore-x86 FIXME: missing sysroot spans (#53081)
32

43
#![feature(const_raw_ptr_deref)]
54
#![feature(const_ptr_offset_from)]

src/test/ui/consts/offset_from_ub.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
| |
77
| ptr_offset_from cannot compute offset of pointers into different allocations.
8-
| inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:20:27
8+
| inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:19:27
99
|
10-
::: $DIR/offset_from_ub.rs:14:1
10+
::: $DIR/offset_from_ub.rs:13:1
1111
|
1212
LL | / pub const DIFFERENT_ALLOC: usize = {
1313
LL | |
@@ -27,9 +27,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
2727
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2828
| |
2929
| a memory access tried to interpret some bytes as a pointer
30-
| inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:26:14
30+
| inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:25:14
3131
|
32-
::: $DIR/offset_from_ub.rs:24:1
32+
::: $DIR/offset_from_ub.rs:23:1
3333
|
3434
LL | / pub const NOT_PTR: usize = {
3535
LL | |
@@ -44,9 +44,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
4444
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4545
| |
4646
| exact_div: 1 cannot be divided by 2 without remainder
47-
| inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:34:27
47+
| inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:33:27
4848
|
49-
::: $DIR/offset_from_ub.rs:29:1
49+
::: $DIR/offset_from_ub.rs:28:1
5050
|
5151
LL | / pub const NOT_MULTIPLE_OF_SIZE: usize = {
5252
LL | |

0 commit comments

Comments
 (0)