-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal compiler error with async, const generics, and ?-operator #84841
Comments
complete backtrace
Does not occur on stable 1.50.0, but on 1.51.0 @rustbot modify labels: A-async-await regression-from-stable-to-stable |
Regression in nightly-2020-05-17 between ed084b0...dd927a5 |
The bisection seems accurate, but (just so nobody misses this) this does mean it does also occur on 1.50 and all the way back to 1.45. Also this is seems const-generics related: @rustbot label A-const-generics. PRs in the relevant range:
|
@rustbot claim Claiming to investigate more |
This panic happens while reporting an error, specifically in rust/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs Lines 2352 to 2357 in ed597e7
It appears to be the result of calling I haven't yet investigated why this would happen. The Logs from before the panic:
More detailed backtracethread 'rustc' panicked at 'index out of bounds: the len is 0 but the index is 0', /usr/local/google/home/tmandry/.cargo/registry/src/github.com-1ecc6299db9ec823/ena-0.14.0/src/snapshot_vec.rs:199:10 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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md note: rustc 1.54.0-dev running on x86_64-unknown-linux-gnu note: compiler flags: -Z report-delayed-bugs query stack during panic: |
Potentially related to #86743 |
Code
Meta
rustc --version --verbose
:The error also occurs on beta and nightly.
Error output
Backtrace
The text was updated successfully, but these errors were encountered: