ICE: Parser: Diagnostic "box_syntax
has been removed" crashes if the source isn't available
#128442
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Found by grepping through the compiler via
rg 'span_to_snippet.+?(expect|unwrap)\(' compiler
while reviewing an unrelated PR.rust/compiler/rustc_parse/src/parser/expr.rs
Line 623 in 83734f2
Reproducer
File
a.rs
:File
b.rs
:a
:rustc a.rs --crate-type=lib
.a.rs
.b
:rustc b.rs -L. --extern a --edition=2021
.Compiler Output
Full compiler output
Meta
rustc -Vv
:The text was updated successfully, but these errors were encountered: