Skip to content

Commit 8826748

Browse files
committed
gc/mmtk: keep using std::panic::PanicInfo for MSRV 1.74
rust-lang/rust#115974 Gbp-Pq: Name gc-mmtk-keep-using-std-panic-PanicInfo-for-MSRV-1.74.patch
1 parent c543aaa commit 8826748

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gc/mmtk/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ extern crate log;
55
extern crate probe;
66

77
use std::collections::HashSet;
8-
use std::panic::PanicHookInfo;
98
use std::sync::Mutex;
109
use std::thread::ThreadId;
1110

@@ -92,7 +91,7 @@ pub(crate) fn is_gc_thread(thread_id: ThreadId) -> bool {
9291
gc_threads.contains(&thread_id)
9392
}
9493

95-
fn handle_gc_thread_panic(panic_info: &PanicHookInfo) {
94+
fn handle_gc_thread_panic(panic_info: &std::panic::PanicInfo) {
9695
eprintln!("ERROR: An MMTk GC thread panicked. This is a bug.");
9796
eprintln!("{panic_info}");
9897

0 commit comments

Comments
 (0)