From 035333993d09df69dd82723881b05cda5f0cde07 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 10 May 2019 17:44:25 +0200 Subject: [PATCH] Clarify that rustc unwinds on errors, not panics --- src/librustc_driver/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index ece82233e995..0fd00af0bd03 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1145,7 +1145,7 @@ fn extra_compiler_flags() -> Option<(Vec, bool)> { /// Runs a closure and catches unwinds triggered by fatal errors. /// -/// The compiler currently panics with a special sentinel value to abort +/// The compiler currently unwinds with a special sentinel value to abort /// compilation on fatal errors. This function catches that sentinel and turns /// the panic into a `Result` instead. pub fn catch_fatal_errors R, R>(f: F) -> Result {