Skip to content

Commit 4784d84

Browse files
committed
Remove now-redundant file/line info from const backtraces
1 parent 820d125 commit 4784d84

File tree

357 files changed

+492
-492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+492
-492
lines changed

tests/extern-so/fail/function_not_in_so.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | foo();
66
|
77
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
88
= note: BACKTRACE:
9-
= note: inside `main` at $DIR/function_not_in_so.rs:LL:CC
9+
= note: inside `main`
1010

1111
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1212

tests/fail/abort-terminator.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ LL | | panic!()
99
LL | | }
1010
| |_^ the program aborted execution
1111
|
12-
= note: inside `panic_abort` at $DIR/abort-terminator.rs:LL:CC
13-
note: inside `main` at $DIR/abort-terminator.rs:LL:CC
12+
= note: inside `panic_abort`
13+
note: inside `main`
1414
--> $DIR/abort-terminator.rs:LL:CC
1515
|
1616
LL | panic_abort();

tests/fail/alloc/deallocate-bad-alignment.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-bad-alignment.rs:LL:CC
10+
= note: inside `std::alloc::dealloc`
11+
note: inside `main`
1212
--> $DIR/deallocate-bad-alignment.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(1, 2));

tests/fail/alloc/deallocate-bad-size.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-bad-size.rs:LL:CC
10+
= note: inside `std::alloc::dealloc`
11+
note: inside `main`
1212
--> $DIR/deallocate-bad-size.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(2, 1));

tests/fail/alloc/deallocate-twice.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LL | unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) }
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::alloc::dealloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/deallocate-twice.rs:LL:CC
10+
= note: inside `std::alloc::dealloc`
11+
note: inside `main`
1212
--> $DIR/deallocate-twice.rs:LL:CC
1313
|
1414
LL | dealloc(x, Layout::from_size_align_unchecked(1, 1));

tests/fail/alloc/global_system_mixup.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ LL | FREE();
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::sys::PLATFORM::alloc::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at RUSTLIB/std/src/sys/PLATFORM/alloc.rs:LL:CC
11-
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
12-
note: inside `main` at $DIR/global_system_mixup.rs:LL:CC
10+
= note: inside `std::sys::PLATFORM::alloc::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc`
11+
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate`
12+
note: inside `main`
1313
--> $DIR/global_system_mixup.rs:LL:CC
1414
|
1515
LL | System.deallocate(ptr, l);

tests/fail/alloc/no_global_allocator.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | __rust_alloc(1, 1);
66
|
77
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
88
= note: BACKTRACE:
9-
= note: inside `start` at $DIR/no_global_allocator.rs:LL:CC
9+
= note: inside `start`
1010

1111
error: aborting due to previous error
1212

tests/fail/alloc/reallocate-bad-size.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/reallocate-bad-size.rs:LL:CC
10+
= note: inside `std::alloc::realloc`
11+
note: inside `main`
1212
--> $DIR/reallocate-bad-size.rs:LL:CC
1313
|
1414
LL | let _y = realloc(x, Layout::from_size_align_unchecked(2, 1), 1);

tests/fail/alloc/reallocate-change-alloc.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | let _z = *x;
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `main` at $DIR/reallocate-change-alloc.rs:LL:CC
10+
= note: inside `main`
1111

1212
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
1313

tests/fail/alloc/reallocate-dangling.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ LL | unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) }
77
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
99
= note: BACKTRACE:
10-
= note: inside `std::alloc::realloc` at RUSTLIB/alloc/src/alloc.rs:LL:CC
11-
note: inside `main` at $DIR/reallocate-dangling.rs:LL:CC
10+
= note: inside `std::alloc::realloc`
11+
note: inside `main`
1212
--> $DIR/reallocate-dangling.rs:LL:CC
1313
|
1414
LL | let _z = realloc(x, Layout::from_size_align_unchecked(1, 1), 1);

0 commit comments

Comments
 (0)