Skip to content

Clippy panic during --fix on latest Rust #8283

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

Closed
sffc opened this issue Jan 15, 2022 · 1 comment
Closed

Clippy panic during --fix on latest Rust #8283

sffc opened this issue Jan 15, 2022 · 1 comment

Comments

@sffc
Copy link

sffc commented Jan 15, 2022

I get the following error when running cargo clippy --fix on Rust 1.58:

thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', compiler/rustc_query_impl/src/on_disk_cache.rs:500:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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-clippy/issues/new

note: Clippy version: clippy 0.1.58 (02072b4 2022-01-11)

query stack during panic:
#0 [predicates_of] computing predicates of `BmpBlockSelector`
#1 [param_env] computing normalized predicates of `BmpBlockSelector`
end of query stack
error: could not compile `icu_uniset`

Instructions to reproduce:

  1. Check out unicode-org/icu4x@61c5889
  2. cd utils/uniset
  3. cargo clippy --fix
@sffc sffc changed the title Clippy error during --fix on latest Rust Clippy panic during --fix on latest Rust Jan 15, 2022
@giraffate
Copy link
Contributor

Thanks for the report!

It's a duplicate of #8164, so I'm closing this.

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