Repository navigation
internal compiler error: Error constructed but not emitted #62546
Copy link
Copy link
Closed
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
I see the following error on the beta and nightly channels, but not on stable:
$ echo "pub t(#" > main.rs
$ rustc main.rs
error: this file contains an un-closed delimiter
--> main.rs:1:9
|
1 | pub t(#
| - ^
| |
| un-closed delimiter
error: internal compiler error: Error constructed but not emitted
thread 'rustc' panicked at 'explicit panic', src/librustc_errors/diagnostic_builder.rs:387:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
error: aborting due to 2 previous errors
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.37.0-beta.2 (74e5a0d47 2019-07-08) running on x86_64-apple-darwin
Found with the help of libfuzzer-sys.
Reacted by tesuji
Metadata
Metadata
Assignees
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTE-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
pnkfelix commentedon Jul 11, 2019
triage: P-high, because errors being swallowed, even in the presence of other errors, scares me a bit.
nikomatsakis commentedon Jul 11, 2019
Perhaps @estebank might be a good candidate to investigate?
estebank commentedon Jul 11, 2019
The error that is not being emitted is
Looking.Found, incoming PR shortly.Rollup merge of rust-lang#62604 - estebank:unemitted-err-ice, r=pnkfelix