Skip to content

Commit b8f9578

Browse files
committed
Merge from rustc
2 parents bfdc9b9 + a34e2d7 commit b8f9578

File tree

481 files changed

+486
-482
lines changed

Some content is hidden

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

481 files changed

+486
-482
lines changed

src/provenance_gc.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,16 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriInterpCxExt<'mir, 'tcx> {
193193
}
194194

195195
fn remove_unreachable_allocs(&mut self, allocs: FxHashSet<AllocId>) {
196-
let this = self.eval_context_ref();
197-
let allocs = LiveAllocs { ecx: this, collected: allocs };
196+
let this = self.eval_context_mut();
197+
let allocs = LiveAllocs {
198+
ecx: this,
199+
collected: allocs,
200+
};
198201
this.machine.allocation_spans.borrow_mut().retain(|id, _| allocs.is_live(*id));
199202
this.machine.intptrcast.borrow_mut().remove_unreachable_allocs(&allocs);
200203
if let Some(borrow_tracker) = &this.machine.borrow_tracker {
201204
borrow_tracker.borrow_mut().remove_unreachable_allocs(&allocs);
202205
}
206+
this.remove_unreachable_allocs(&allocs.collected);
203207
}
204208
}

tests/extern-so/fail/function_not_in_so.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ LL | foo();
1010

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

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/fail-dep/concurrency/libc_pthread_create_main_terminate.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ error: the main thread terminated without waiting for all remaining threads
22

33
note: pass `-Zmiri-ignore-leaks` to disable this check
44

5-
error: aborting due to previous error
5+
error: aborting due to 1 previous error
66

tests/fail-dep/concurrency/libc_pthread_create_too_few_args.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ LL | panic!()
1010
= note: inside `thread_start` at RUSTLIB/core/src/panic.rs:LL:CC
1111
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/fail-dep/concurrency/libc_pthread_create_too_many_args.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ LL | panic!()
1010
= note: inside `thread_start` at RUSTLIB/core/src/panic.rs:LL:CC
1111
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

13-
error: aborting due to previous error
13+
error: aborting due to 1 previous error
1414

tests/fail-dep/concurrency/libc_pthread_join_detached.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | assert_eq!(libc::pthread_join(native, ptr::null_mut()), 0);
1111

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

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/fail-dep/concurrency/libc_pthread_join_joined.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | assert_eq!(libc::pthread_join(native, ptr::null_mut()), 0);
1111

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

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/fail-dep/concurrency/libc_pthread_join_main.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | assert_eq!(libc::pthread_join(thread_id, ptr::null_mut()), 0);
1111

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

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/fail-dep/concurrency/libc_pthread_join_multiple.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | ... assert_eq!(libc::pthread_join(native_copy, ptr::null_mut()), 0);
1111

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

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

tests/fail-dep/concurrency/libc_pthread_join_self.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LL | assert_eq!(libc::pthread_join(native, ptr::null_mut()), 0);
1111

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

14-
error: aborting due to previous error
14+
error: aborting due to 1 previous error
1515

0 commit comments

Comments
 (0)