Skip to content

note: Clippy version: clippy 0.1.66 (e75aab0 2022-11-09) crashed #9827

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
simonsso opened this issue Nov 10, 2022 · 5 comments
Closed

note: Clippy version: clippy 0.1.66 (e75aab0 2022-11-09) crashed #9827

simonsso opened this issue Nov 10, 2022 · 5 comments

Comments

@simonsso
Copy link

I experienced this panic with the latest nightly. I'm not sure if this logs will help you find the problem but here they are:

cargo +nightly clippy --message-format=json --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code 
thread '<unnamed>' panicked at 'forcing query with already existing `DepNode`
- query-key: Canonical { max_universe: U0, variables: [], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing, constness: NotConst }, value: Binder(TraitPredicate(<for<'a, 'b, 'c, 'd, 'e, 'f> {std::future::ResumeTy, &'a jsonrpsee::jsonrpsee_ws_client::WsClient, &'b str, &'c str, std::option::Option<jsonrpsee::jsonrpsee_types::ParamsSer<'d>>, std::pin::Pin<frame_benchmarking::Box<(dyn std::future::Future<Output = sc_service::Result<jsonrpsee::jsonrpsee_core::client::Subscription<sp_runtime::generic::Header<u32, polkadot_service::BlakeTwo256>>, jsonrpsee::jsonrpsee_core::Error>> + std::marker::Send + 'e)>>, std::pin::Pin<frame_benchmarking::Box<(dyn std::future::Future<Output = sc_service::Result<jsonrpsee::jsonrpsee_core::client::Subscription<sp_runtime::generic::Header<u32, polkadot_service::BlakeTwo256>>, jsonrpsee::jsonrpsee_core::Error>> + std::marker::Send + 'f)>>, ()} as std::marker::Send>, polarity:Positive), []) } }
- dep-node: evaluate_obligation(956f61c27450052e-3134ec399e0f42c1)', /rustc/e75aab045fc476f176a58c408f6b06f0e275c6e1/compiler/rustc_query_system/src/dep_graph/graph.rs:316: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.66 (e75aab0 2022-11-09)

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `for<'a, 'b, 'c, 'd, 'e, 'f> {core::future::ResumeTy, &'a jsonrpsee_core::client::async_client::Client, &'b str, &'c str, core::option::Option<jsonrpsee_types::params::ParamsSer<'d>>, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<jsonrpsee_core::client::Subscription<sp_runtime::generic::header::Header<u32, sp_runtime::traits::BlakeTwo256>>, jsonrpsee_core::error::Error>> + core::marker::Send + 'e)>>, core::pin::Pin<alloc::boxed::Box<(dyn core::future::future::Future<Output = core::result::Result<jsonrpsee_core::client::Subscription<sp_runtime::generic::header::Header<u32, sp_runtime::traits::BlakeTwo256>>, jsonrpsee_core::error::Error>> + core::marker::Send + 'f)>>, ()}: core::marker::Send`
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `nodle-parachain`
@giraffate
Copy link
Contributor

Could you provide the backtrace or the reproduction?

@simonsso
Copy link
Author

@giraffate
Copy link
Contributor

Thanks! This looks the same as #9845

https://github.com/NodleCode/chain/actions/runs/3440686812/jobs/5739427885#step:8:2140

thread '<unnamed>' panicked at 'forcing query with already existing `DepNode`
  - query-key: Canonical { max_universe: U0, variables: [], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing, constness: NotConst }, value: Binder(TraitPredicate(<for<'a, 'b, 'c, 'd, 'e, 'f> {std::future::ResumeTy, &'a jsonrpsee::jsonrpsee_ws_client::WsClient, &'b str, &'c str, std::option::Option<jsonrpsee::jsonrpsee_types::ParamsSer<'d>>, std::pin::Pin<frame_benchmarking::Box<(dyn std::future::Future<Output = sc_service::Result<jsonrpsee::jsonrpsee_core::client::Subscription<sp_runtime::generic::Header<u32, polkadot_service::BlakeTwo256>>, jsonrpsee::jsonrpsee_core::Error>> + std::marker::Send + 'e)>>, std::pin::Pin<frame_benchmarking::Box<(dyn std::future::Future<Output = sc_service::Result<jsonrpsee::jsonrpsee_core::client::Subscription<sp_runtime::generic::Header<u32, polkadot_service::BlakeTwo256>>, jsonrpsee::jsonrpsee_core::Error>> + std::marker::Send + 'f)>>, ()} as std::marker::Send>, polarity:Positive), []) } }
  - dep-node: evaluate_obligation(956f61c27450052e-3134ec399e0f42c1)', /rustc/e75aab045fc476f176a58c408f6b06f0e275c6e1/compiler/rustc_query_system/src/dep_graph/graph.rs:316:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  
  error: internal compiler error: unexpected panic
  Error: internal compiler error: unexpected panic
  note: the compiler unexpectedly panicked. this is a bug.

@simonsso
Copy link
Author

Upgrade to clippy 0.1.66 (e631891 2022-11-13) removed the problem

@giraffate
Copy link
Contributor

Okay, thanks!

#9845 (comment) is looking at the issue, 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