Skip to content

Commit 4148c79

Browse files
committed
Remove an erroneous comment.
The comment just below this one describes how the `impl !Send for FatalError` makes it impossible to `panic!(FatalError)`. (Which still puzzles me, because `panic!(FatalError)` is invalid because the first argument of `panic!` must be a string literal. And `panic!("{}", FatalError)` works whether `Send` is impl'd or not.)
1 parent c142417 commit 4148c79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_span/src/fatal_error.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/// Used as a return value to signify a fatal error occurred. (It is also
2-
/// used as the argument to panic at the moment, but that will eventually
3-
/// not be true.)
1+
/// Used as a return value to signify a fatal error occurred.
42
#[derive(Copy, Clone, Debug)]
53
#[must_use]
64
pub struct FatalError;

0 commit comments

Comments
 (0)