Skip to content

Commit 0353339

Browse files
Clarify that rustc unwinds on errors, not panics
1 parent e296ed3 commit 0353339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
11451145

11461146
/// Runs a closure and catches unwinds triggered by fatal errors.
11471147
///
1148-
/// The compiler currently panics with a special sentinel value to abort
1148+
/// The compiler currently unwinds with a special sentinel value to abort
11491149
/// compilation on fatal errors. This function catches that sentinel and turns
11501150
/// the panic into a `Result` instead.
11511151
pub fn catch_fatal_errors<F: FnOnce() -> R, R>(f: F) -> Result<R, ErrorReported> {

0 commit comments

Comments
 (0)