From f1d674605b39c9e7509419ae31dde9c73c6d29ac Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 1 Jul 2022 20:28:46 -0700 Subject: [PATCH] Temporarily disable clippy on tests due to ICE error: internal compiler error: compiler/rustc_typeck/src/collect.rs:1896:13: to get the signature of a closure, use `substs.as_closure().sig()` not `fn_sig()` thread 'rustc' panicked at 'Box', /rustc/46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f/compiler/rustc_errors/src/lib.rs:1391:9 stack backtrace: 0: std::panicking::begin_panic:: 1: std::panic::panic_any:: 2: ::bug::<&alloc::string::String> 3: ::bug::<&alloc::string::String> 4: rustc_middle::ty::context::tls::with_opt::::{closure#0}, ()> 5: rustc_middle::util::bug::opt_span_bug_fmt:: 6: rustc_middle::util::bug::bug_fmt 7: rustc_typeck::collect::fn_sig 8: >::with_task::> 9: rustc_query_system::query::plumbing::try_execute_query::>> 10: ::fn_sig 11: <&mut clippy_lints::dereference::walk_parents::{closure#0} as core::ops::function::FnMut<(rustc_hir::hir::Node, rustc_hir::hir_id::HirId)>>::call_mut 12: clippy_utils::walk_to_expr_usage:: 13: ::check_expr 14: ::check_expr 15: as rustc_hir::intravisit::Visitor>::visit_expr 16: as rustc_hir::intravisit::Visitor>::visit_expr 17: rustc_hir::intravisit::walk_block::> 18: as rustc_hir::intravisit::Visitor>::visit_block 19: as rustc_hir::intravisit::Visitor>::visit_expr 20: as rustc_hir::intravisit::Visitor>::visit_expr 21: as rustc_hir::intravisit::Visitor>::visit_block 22: as rustc_hir::intravisit::Visitor>::visit_expr 23: as rustc_hir::intravisit::Visitor>::visit_nested_body 24: as rustc_hir::intravisit::Visitor>::visit_fn 25: rustc_hir::intravisit::walk_expr::> 26: as rustc_hir::intravisit::Visitor>::visit_expr 27: rustc_hir::intravisit::walk_expr::> 28: as rustc_hir::intravisit::Visitor>::visit_expr 29: as rustc_hir::intravisit::Visitor>::visit_nested_body 30: as rustc_hir::intravisit::Visitor>::visit_fn 31: rustc_hir::intravisit::walk_item::> 32: as rustc_hir::intravisit::Visitor>::visit_nested_item 33: rustc_hir::intravisit::walk_mod::> 34: as rustc_hir::intravisit::Visitor>::visit_mod 35: as rustc_hir::intravisit::Visitor>::visit_nested_item 36: rustc_hir::intravisit::walk_mod::> 37: as rustc_hir::intravisit::Visitor>::visit_mod 38: rustc_lint::late::late_lint_pass_crate:: 39: rustc_lint::late::late_lint_crate:: 40: rustc_data_structures::sync::join::::{closure#0}, rustc_lint::late::check_crate::{closure#1}, (), ()> 41: ::time::<(), rustc_interface::passes::analysis::{closure#5}::{closure#1}::{closure#2}::{closure#0}> 42: as core::ops::function::FnOnce<()>>::call_once 43: ::time::<(), rustc_interface::passes::analysis::{closure#5}> 44: rustc_interface::passes::analysis 45: >::with_task::> 46: rustc_query_system::query::plumbing::try_execute_query::>> 47: rustc_query_system::query::plumbing::get_query:: 48: ::enter::> 49: ::enter::, rustc_errors::ErrorGuaranteed>> 50: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}> 51: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>> note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 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.1.64 (46b8c23 2022-07-01) query stack during panic: #0 [fn_sig] computing function signature of `issue149::ok::{closure#0}` #1 [analysis] running analysis passes on this crate end of query stack error: could not compile `async-trait` --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3dc540..aa1bc42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@clippy - - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic + # Temporarily disabled on --tests because clippy is crashing. + # https://github.com/rust-lang/rust-clippy/issues/9089 + - run: cargo clippy -- -Dclippy::all -Dclippy::pedantic miri: name: Miri