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

Clippy crashes on ariadne #9432

Open
Legorooj opened this issue Sep 6, 2022 · 3 comments
Open

Clippy crashes on ariadne #9432

Legorooj opened this issue Sep 6, 2022 · 3 comments
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Legorooj
Copy link

Legorooj commented Sep 6, 2022

This error is reproducible for me by cloning zesterer/ariadne@12759f0 and running cargo clippy in the project root.

I'm running nightly 1.65.0-nightly (b44197abb 2022-09-05) on x86_64-pc-windows-msvc. This appears to be a regression - neither the current stable (rustc 1.63.0 (4b91a6ea7 2022-08-08)) or the current beta (rustc 1.64.0-beta.5 (1ec9b66a1 2022-08-31) do not have this issue. I've not tested on other platforms.

As a note, clippy doesn't crash instantly. It successfully produces 8 warnings before crashing. I've excluded those 8 warnings here, as I don't think they're relevant, and anyone should be able to reproduce them locally just fine. If needed however I can provide them.

thread 'rustc' panicked at 'assertion failed: !value.has_escaping_bound_vars()', /rustc/b44197abb0b3ffe4908892e1e08ab1cd721ff3b9\compiler\rustc_middle\src\ty\sty.rs:1034:9
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.65 (b44197ab 2022-09-05)

query stack during panic:
#0 [is_sized_raw] computing whether `dyn core::fmt::Debug` is `Sized`
#1 [layout_of] computing layout of `*const dyn core::fmt::Debug`
end of query stack
warning: `ariadne` (lib) generated 8 warnings
error: could not compile `ariadne`; 8 warnings emitted

Additional labels

@rustbot label +I-ICE

@rustbot rustbot added the I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️ label Sep 6, 2022
@Legorooj
Copy link
Author

Legorooj commented Sep 6, 2022

@rustbot label +C-bug

@rustbot rustbot added the C-bug Category: Clippy is not doing the correct thing label Sep 6, 2022
@Jarcho
Copy link
Contributor

Jarcho commented Sep 6, 2022

Looks like the same as #9414

@langston-barrett
Copy link

I'm unable to reproduce this

clippy 0.1.70 (7b4f489 2023-03-12)

rustc 1.70.0-nightly (7b4f48927 2023-03-12)
binary: rustc
commit-hash: 7b4f48927dce585f747a58083b45ab62b9d73a53
commit-date: 2023-03-12
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 15.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing I-ICE Issue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants