main.rs $ rustc main.rs error: this file contains an un-closed delimiter --> main.rs:1:9 | 1 | pub ...">

internal compiler error: Error constructed but not emitted · Issue #62546 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@dwrensha

Description

@dwrensha

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.