Rustc panics with comments with non-ascii characters after an error #63444
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Running this on playground:
Panics rustc:
Surpressing the comment:
Makes it fail to compile as intended (without crashing):
Removing the line that does not compile:
Also prevents panicing.
// é
can be placed in a lot of places and still behave correctly:But it can't be after the
A
if it is in the same block asA
is:Any of those three comments alone would trigger a rustc panic.
NOTE:
// é
was an arbitrary choice. I believe this happens with most (if not all) non-ascii characters.The text was updated successfully, but these errors were encountered: