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

Got a rustc panic, filing a bug report as requested #7454

Closed
kyp44 opened this issue Jul 12, 2021 · 1 comment
Closed

Got a rustc panic, filing a bug report as requested #7454

kyp44 opened this issue Jul 12, 2021 · 1 comment

Comments

@kyp44
Copy link

kyp44 commented Jul 12, 2021

When I run cargo clippy on my project I get the following error, though I have resolved all lints, and the project builds fine normally:

thread 'rustc' panicked at '`LateContext::typeck_results` called outside of body', src/tools/clippy/clippy_lints/src/use_self.rs:213:20
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.55 (7a16cfc 2021-07-11)

query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack

I'm just filing a report per the request in the error message.

The project I am working on is just working through the Advent of Code problems to help me become competent in Rust. I don't currently have the project on GitHub or anything, but, if it would help you reproduce this issue, I'd be happy to post it. Also don't hesitate to ask if there's any other info I can provide that would be useful to you.

I am using the nightly channel in rustup if that makes a difference.

@giraffate
Copy link
Contributor

Thanks for the report!

I'm closing this because it's duplicate of #7423.

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