Skip to content
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: Switch on discriminant of non-ADT #5249

Closed
lawliet89 opened this issue Mar 2, 2020 · 1 comment
Closed

Internal Compiler Error: Switch on discriminant of non-ADT #5249

lawliet89 opened this issue Mar 2, 2020 · 1 comment

Comments

@lawliet89
Copy link

lawliet89 commented Mar 2, 2020

I was running Clippy on code in this specific commit and I ran into the compiler error below:

    Checking vault-k8s-helper v0.3.0 (/home/yongwen/work/open/vault-gke-helper)
error: internal compiler error: src/librustc_mir/dataflow/generic/engine.rs:315: Switch on discriminant of non-ADT

thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:881:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.0.212 (fc5d0cc 2020-02-24)

error: aborting due to previous error

error: could not compile `vault-k8s-helper`.

To learn more, run the command again with --verbose.

clippy 0.0.212 (fc5d0cc 2020-02-24)

@JohnTitor
Copy link
Member

Duplicate of #5238 and it's already fixed in latest nightly rustc, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants