From 2750f60d4f4c8090bd0d0230c074fc7d1e2b5a6e Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Tue, 19 Nov 2019 15:33:14 -0500 Subject: [PATCH] Update panic runtime comment --- src/shims/foreign_items.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shims/foreign_items.rs b/src/shims/foreign_items.rs index 130c5d28ff..48d98141b8 100644 --- a/src/shims/foreign_items.rs +++ b/src/shims/foreign_items.rs @@ -132,7 +132,9 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx match link_name { // Note that this matches calls to the *foreign* item `__rust_start_panic* - // that is, calls to `extern "Rust" { fn __rust_start_panic(...) }`. - // We forward this to the underlying *implementation* in "libpanic_unwind". + // We forward this to the underlying *implementation* in the panic runtime crate. + // Normally, this will be either `libpanic_unwind` or `libpanic_abort`, but it could + // also be a custom user-provided implementation via `#![feature(panic_runtime)]` "__rust_start_panic" => { let panic_runtime = tcx.crate_name(tcx.injected_panic_runtime().expect("No panic runtime found!")); let start_panic_instance = this.resolve_path(&[&*panic_runtime.as_str(), "__rust_start_panic"])?;