Skip to content

Commit df621da

Browse files
committed
revert miri wording change
1 parent 233b82c commit df621da

File tree

476 files changed

+765
-765
lines changed

Some content is hidden

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

476 files changed

+765
-765
lines changed

compiler/rustc_const_eval/src/interpret/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ impl<'tcx> fmt::Display for FrameInfo<'tcx> {
216216
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
217217
ty::tls::with(|tcx| {
218218
if tcx.def_key(self.instance.def_id()).disambiguated_data.data == DefPathData::Closure {
219-
write!(f, "called from closure")
219+
write!(f, "inside closure")
220220
} else {
221221
// Note: this triggers a `must_produce_diag` state, which means that if we ever
222222
// get here we must emit a diagnostic. We should never display a `FrameInfo` unless
223223
// we actually want to emit a warning or error to the user.
224-
write!(f, "called from `{}`", self.instance)
224+
write!(f, "inside `{}`", self.instance)
225225
}
226226
})
227227
}

src/tools/miri/tests/fail/alloc/alloc_error_handler.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ LL | ABORT();
66
| ^ the program aborted execution
77
|
88
= note: BACKTRACE:
9-
= note: called from `std::sys::pal::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/pal/PLATFORM/mod.rs:LL:CC
10-
= note: called from `std::process::abort` at RUSTLIB/std/src/process.rs:LL:CC
11-
= note: called from `std::alloc::rust_oom` at RUSTLIB/std/src/alloc.rs:LL:CC
12-
= note: called from `std::alloc::_::__rg_oom` at RUSTLIB/std/src/alloc.rs:LL:CC
13-
= note: called from `std::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
14-
= note: called from `std::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
15-
note: inside `main`
9+
= note: inside `std::sys::pal::PLATFORM::abort_internal` at RUSTLIB/std/src/sys/pal/PLATFORM/mod.rs:LL:CC
10+
= note: inside `std::process::abort` at RUSTLIB/std/src/process.rs:LL:CC
11+
= note: inside `std::alloc::rust_oom` at RUSTLIB/std/src/alloc.rs:LL:CC
12+
= note: inside `std::alloc::_::__rg_oom` at RUSTLIB/std/src/alloc.rs:LL:CC
13+
= note: inside `std::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
14+
= note: inside `std::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
15+
note: called from `main`
1616
--> tests/fail/alloc/alloc_error_handler.rs:LL:CC
1717
|
1818
LL | handle_alloc_error(Layout::for_value(&0));

src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ LL | core::intrinsics::abort();
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the program aborted execution
77
|
88
= note: BACKTRACE:
9-
= note: called from `alloc_error_handler` at tests/fail/alloc/alloc_error_handler_custom.rs:LL:CC
10-
note: inside `_::__rg_oom`
9+
= note: inside `alloc_error_handler` at tests/fail/alloc/alloc_error_handler_custom.rs:LL:CC
10+
note: called from `_::__rg_oom`
1111
--> tests/fail/alloc/alloc_error_handler_custom.rs:LL:CC
1212
|
1313
LL | #[alloc_error_handler]
1414
| ---------------------- in this procedural macro expansion
1515
LL | fn alloc_error_handler(layout: Layout) -> ! {
1616
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17-
= note: called from `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
18-
= note: called from `alloc::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
19-
note: inside `miri_start`
17+
= note: inside `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
18+
= note: inside `alloc::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
19+
note: called from `miri_start`
2020
--> tests/fail/alloc/alloc_error_handler_custom.rs:LL:CC
2121
|
2222
LL | handle_alloc_error(Layout::for_value(&0));

src/tools/miri/tests/fail/alloc/alloc_error_handler_no_std.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ LL | core::intrinsics::abort();
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the program aborted execution
99
|
1010
= note: BACKTRACE:
11-
= note: called from `panic_handler` at tests/fail/alloc/alloc_error_handler_no_std.rs:LL:CC
12-
= note: called from `alloc::alloc::__alloc_error_handler::__rdl_oom` at RUSTLIB/alloc/src/alloc.rs:LL:CC
13-
= note: called from `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
14-
= note: called from `alloc::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
15-
note: inside `miri_start`
11+
= note: inside `panic_handler` at tests/fail/alloc/alloc_error_handler_no_std.rs:LL:CC
12+
= note: inside `alloc::alloc::__alloc_error_handler::__rdl_oom` at RUSTLIB/alloc/src/alloc.rs:LL:CC
13+
= note: inside `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
14+
= note: inside `alloc::alloc::handle_alloc_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC
15+
note: called from `miri_start`
1616
--> tests/fail/alloc/alloc_error_handler_no_std.rs:LL:CC
1717
|
1818
LL | handle_alloc_error(Layout::for_value(&0));

src/tools/miri/tests/fail/alloc/deallocate-bad-alignment.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | dealloc(x, Layout::from_size_align_unchecked(1, 2));
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: called from `main` at tests/fail/alloc/deallocate-bad-alignment.rs:LL:CC
10+
= note: inside `main` at tests/fail/alloc/deallocate-bad-alignment.rs:LL:CC
1111

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

src/tools/miri/tests/fail/alloc/deallocate-bad-size.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | dealloc(x, Layout::from_size_align_unchecked(2, 1));
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: called from `main` at tests/fail/alloc/deallocate-bad-size.rs:LL:CC
10+
= note: inside `main` at tests/fail/alloc/deallocate-bad-size.rs:LL:CC
1111

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

src/tools/miri/tests/fail/alloc/deallocate-twice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ help: ALLOC was deallocated here:
1717
LL | dealloc(x, Layout::from_size_align_unchecked(1, 1));
1818
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1919
= note: BACKTRACE (of the first span):
20-
= note: called from `main` at tests/fail/alloc/deallocate-twice.rs:LL:CC
20+
= note: inside `main` at tests/fail/alloc/deallocate-twice.rs:LL:CC
2121

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

src/tools/miri/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: called from `std::sys::alloc::PLATFORM::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at RUSTLIB/std/src/sys/alloc/PLATFORM.rs:LL:CC
11-
= note: called from `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
12-
note: inside `main`
10+
= note: inside `std::sys::alloc::PLATFORM::<impl std::alloc::GlobalAlloc for std::alloc::System>::dealloc` at RUSTLIB/std/src/sys/alloc/PLATFORM.rs:LL:CC
11+
= note: inside `<std::alloc::System as std::alloc::Allocator>::deallocate` at RUSTLIB/std/src/alloc.rs:LL:CC
12+
note: called from `main`
1313
--> tests/fail/alloc/global_system_mixup.rs:LL:CC
1414
|
1515
LL | unsafe { System.deallocate(ptr, l) };

src/tools/miri/tests/fail/alloc/no_global_allocator.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | __rust_alloc(1, 1);
77
= help: if this is a basic API commonly used on this target, please report an issue with Miri
88
= help: however, note that Miri does not aim to support every FFI function out there; for instance, we will not support APIs for things such as GUIs, scripting languages, or databases
99
= note: BACKTRACE:
10-
= note: called from `miri_start` at tests/fail/alloc/no_global_allocator.rs:LL:CC
10+
= note: inside `miri_start` at tests/fail/alloc/no_global_allocator.rs:LL:CC
1111

1212
error: aborting due to 1 previous error
1313

src/tools/miri/tests/fail/alloc/reallocate-bad-size.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | let _y = realloc(x, Layout::from_size_align_unchecked(2, 1), 1);
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: called from `main` at tests/fail/alloc/reallocate-bad-size.rs:LL:CC
10+
= note: inside `main` at tests/fail/alloc/reallocate-bad-size.rs:LL:CC
1111

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

0 commit comments

Comments
 (0)