Skip to content

Commit 2750f60

Browse files
committed
Update panic runtime comment
1 parent e02dc4a commit 2750f60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shims/foreign_items.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
132132
match link_name {
133133
// Note that this matches calls to the *foreign* item `__rust_start_panic* -
134134
// that is, calls to `extern "Rust" { fn __rust_start_panic(...) }`.
135-
// We forward this to the underlying *implementation* in "libpanic_unwind".
135+
// We forward this to the underlying *implementation* in the panic runtime crate.
136+
// Normally, this will be either `libpanic_unwind` or `libpanic_abort`, but it could
137+
// also be a custom user-provided implementation via `#![feature(panic_runtime)]`
136138
"__rust_start_panic" => {
137139
let panic_runtime = tcx.crate_name(tcx.injected_panic_runtime().expect("No panic runtime found!"));
138140
let start_panic_instance = this.resolve_path(&[&*panic_runtime.as_str(), "__rust_start_panic"])?;

0 commit comments

Comments
 (0)