Skip to content

Panic when running cargo clippy --all-targets after protobuf change #11542

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

Open
vmarcos opened this issue Sep 20, 2023 · 2 comments
Open

Panic when running cargo clippy --all-targets after protobuf change #11542

vmarcos opened this issue Sep 20, 2023 · 2 comments

Comments

@vmarcos
Copy link

vmarcos commented Sep 20, 2023

I am working on a fork of https://github.com/MaterializeInc/materialize and my branch is on top of commit MaterializeInc/materialize@9e11e1d. I made a change to one of our protobuf definitions and edited the relevant code, resulting in commit MaterializeInc/materialize@84200f2. Additionally, I ran cargo clean and cargo build and got a clean compile. Furthermore, VSCode with rust-analyzer is able to check the code, and I verified that cargo check is also fine. However, when I run cargo clippy --all-targets, a panic ensues.

The output I got with RUST_BACKTRACE=full is the following:

   Compiling mz-compute-types v0.0.0 (/Users/vmarcos/workspace/materialize/src/compute-types)
    Checking mz-compute-client v0.0.0 (/Users/vmarcos/workspace/materialize/src/compute-client)
    Checking mz-controller-types v0.0.0 (/Users/vmarcos/workspace/materialize/src/controller-types)
    Checking mz-transform v0.0.0 (/Users/vmarcos/workspace/materialize/src/transform)
    Checking mz-sql v0.0.0 (/Users/vmarcos/workspace/materialize/src/sql)
    Checking mz-controller v0.0.0 (/Users/vmarcos/workspace/materialize/src/controller)
    Checking mz-compute v0.0.0 (/Users/vmarcos/workspace/materialize/src/compute)
    Checking mz-clusterd v0.70.0-dev (/Users/vmarcos/workspace/materialize/src/clusterd)
    Checking mz-catalog v0.0.0 (/Users/vmarcos/workspace/materialize/src/catalog)
    Checking mz-adapter v0.0.0 (/Users/vmarcos/workspace/materialize/src/adapter)
thread 'rustc' panicked at 'forcing query with already existing `DepNode`
- query-key: (ByRef { alloc: ConstAllocation { .. }, offset: Size(0 bytes) }, mz_catalog::builtin::BuiltinCluster)
- dep-node: try_destructure_mir_constant_for_diagnostics(dabeaf779ab7f6a8-7b850402adbe51f8)', /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/compiler/rustc_query_system/src/dep_graph/graph.rs:351:9
stack backtrace:
   0:        0x1012e23c0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h523fafbfdb8f0857
   1:        0x101336450 - core::fmt::write::hf94a55b5a3abd106
   2:        0x1012d7d38 - std::io::Write::write_fmt::hc7c6bf1da111b052
   3:        0x1012e2218 - std::sys_common::backtrace::print::h68ede8fb1e716cba
   4:        0x1012e4d94 - std::panicking::default_hook::{{closure}}::hba2205c2705c60bb
   5:        0x1012e4b24 - std::panicking::default_hook::h9d927e01472bad1a
   6:        0x109829034 - rustc_driver_impl[e09643758e6f6376]::install_ice_hook::{closure#0}
   7:        0x1012e5514 - std::panicking::rust_panic_with_hook::h8654c51ef9980a29
   8:        0x1012e52e8 - std::panicking::begin_panic_handler::{{closure}}::hd188a636b3b90298
   9:        0x1012e27a0 - std::sys_common::backtrace::__rust_end_short_backtrace::hc331d455ac21f427
  10:        0x1012e5054 - _rust_begin_unwind
  11:        0x101361444 - core::panicking::panic_fmt::h4f2054f72ff905b1
  12:        0x10c987b98 - rustc_query_system[b4230c255e5b9403]::query::plumbing::try_execute_query::<rustc_query_impl[bcaa985f447c9306]::DynamicConfig<rustc_query_system[b4230c255e5b9403]::query::caches::DefaultCache<(rustc_middle[bded664fc7f58a73]::mir::interpret::value::ConstValue, rustc_middle[bded664fc7f58a73]::ty::Ty), rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[bcaa985f447c9306]::plumbing::QueryCtxt, true>
  13:        0x10cae31e0 - rustc_query_impl[bcaa985f447c9306]::query_impl::try_destructure_mir_constant_for_diagnostics::get_query_incr::__rust_end_short_backtrace
  14:        0x1005bc494 - clippy_utils[45953a6625f151f0]::consts::field_of_struct
  15:        0x1005bac70 - <clippy_utils[45953a6625f151f0]::consts::ConstEvalLateContext>::expr
  16:        0x10063afc4 - <clippy_utils[45953a6625f151f0]::hir_utils::HirEqInterExpr>::eq_expr
  17:        0x10063b264 - <clippy_utils[45953a6625f151f0]::hir_utils::HirEqInterExpr>::eq_expr
  18:        0x10063d568 - clippy_utils[45953a6625f151f0]::hir_utils::eq_expr_value
  19:        0x10035cebc - clippy_utils[45953a6625f151f0]::search_same::<&rustc_hir[33dde4395bd09da6]::hir::Expr, clippy_lints[e2b0f6397c34f5bd]::copies::lint_same_cond::{closure#0}, clippy_lints[e2b0f6397c34f5bd]::copies::lint_same_cond::{closure#1}>
  20:        0x1003e9544 - <clippy_lints[e2b0f6397c34f5bd]::copies::CopyAndPaste as rustc_lint[c404b8ed850dd8f8]::passes::LateLintPass>::check_expr
  21:        0x10d26f074 - <rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass as rustc_lint[c404b8ed850dd8f8]::passes::LateLintPass>::check_expr
  22:        0x109993598 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_expr
  23:        0x109944900 - rustc_hir[33dde4395bd09da6]::intravisit::walk_expr::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  24:        0x1099935a4 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_expr
  25:        0x109993834 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_body
  26:        0x109941160 - rustc_hir[33dde4395bd09da6]::intravisit::walk_impl_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  27:        0x109994a34 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_impl_item
  28:        0x109945a24 - rustc_hir[33dde4395bd09da6]::intravisit::walk_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  29:        0x1099941cc - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_item
  30:        0x109945540 - rustc_hir[33dde4395bd09da6]::intravisit::walk_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  31:        0x1099941cc - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_item
  32:        0x109990fc4 - rustc_lint[c404b8ed850dd8f8]::late::late_lint_crate::<rustc_lint[c404b8ed850dd8f8]::BuiltinCombinedLateLintPass>
  33:        0x10993ea80 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_lint[c404b8ed850dd8f8]::late::check_crate<rustc_lint[c404b8ed850dd8f8]::BuiltinCombinedLateLintPass, rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}::{closure#2}::{closure#0}::{closure#0}>::{closure#0}::{closure#0}>
  34:        0x10993edf0 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}::{closure#2}::{closure#0}>
  35:        0x10998fba0 - <core[f9d6478373b114c5]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}> as core[f9d6478373b114c5]::ops::function::FnOnce<()>>::call_once
  36:        0x1099403d8 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}>
  37:        0x1099b3edc - rustc_interface[a43b58d3432b23e3]::passes::analysis
  38:        0x10c9c5b74 - rustc_query_impl[bcaa985f447c9306]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 1usize]>>
  39:        0x10ca9e964 - <rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::dynamic_query::{closure#2} as core[f9d6478373b114c5]::ops::function::FnOnce<(rustc_middle[bded664fc7f58a73]::ty::context::TyCtxt, ())>>::call_once
  40:        0x10c93d53c - rustc_query_system[b4230c255e5b9403]::query::plumbing::try_execute_query::<rustc_query_impl[bcaa985f447c9306]::DynamicConfig<rustc_query_system[b4230c255e5b9403]::query::caches::SingleCache<rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[bcaa985f447c9306]::plumbing::QueryCtxt, true>
  41:        0x10ca098f4 - rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  42:        0x10985cd64 - <rustc_middle[bded664fc7f58a73]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  43:        0x10982e0a4 - <rustc_interface[a43b58d3432b23e3]::interface::Compiler>::enter::<rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}::{closure#2}, core[f9d6478373b114c5]::result::Result<core[f9d6478373b114c5]::option::Option<rustc_interface[a43b58d3432b23e3]::queries::Linker>, rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  44:        0x10985ba58 - rustc_span[ba98f16c60603a35]::set_source_map::<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  45:        0x10986e310 - std[5f883c90b3b6ecb9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[a43b58d3432b23e3]::util::run_in_thread_pool_with_globals<rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  46:        0x10986ef08 - <<std[5f883c90b3b6ecb9]::thread::Builder>::spawn_unchecked_<rustc_interface[a43b58d3432b23e3]::util::run_in_thread_pool_with_globals<rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#1} as core[f9d6478373b114c5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:        0x1012edd58 - std::sys::unix::thread::Thread::new::thread_start::h143a83d9ede86d5c
  48:        0x18e46ffa8 - __pthread_joiner_wake

error: 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: rustc 1.72.0 (5680fa18f 2023-08-23) running on aarch64-apple-darwin

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED] -C debuginfo=0

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [try_destructure_mir_constant_for_diagnostics] destructuring MIR constant
#1 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.72 (5680fa18 2023-08-23)

error: could not compile `mz-adapter` (lib)
warning: build failed, waiting for other jobs to finish...
thread 'rustc' panicked at 'forcing query with already existing `DepNode`
- query-key: (ByRef { alloc: ConstAllocation { .. }, offset: Size(0 bytes) }, mz_catalog::builtin::BuiltinCluster)
- dep-node: try_destructure_mir_constant_for_diagnostics(dabeaf779ab7f6a8-7b850402adbe51f8)', /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/compiler/rustc_query_system/src/dep_graph/graph.rs:351:9
stack backtrace:
   0:        0x101c823c0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h523fafbfdb8f0857
   1:        0x101cd6450 - core::fmt::write::hf94a55b5a3abd106
   2:        0x101c77d38 - std::io::Write::write_fmt::hc7c6bf1da111b052
   3:        0x101c82218 - std::sys_common::backtrace::print::h68ede8fb1e716cba
   4:        0x101c84d94 - std::panicking::default_hook::{{closure}}::hba2205c2705c60bb
   5:        0x101c84b24 - std::panicking::default_hook::h9d927e01472bad1a
   6:        0x10a1c9034 - rustc_driver_impl[e09643758e6f6376]::install_ice_hook::{closure#0}
   7:        0x101c85514 - std::panicking::rust_panic_with_hook::h8654c51ef9980a29
   8:        0x101c852e8 - std::panicking::begin_panic_handler::{{closure}}::hd188a636b3b90298
   9:        0x101c827a0 - std::sys_common::backtrace::__rust_end_short_backtrace::hc331d455ac21f427
  10:        0x101c85054 - _rust_begin_unwind
  11:        0x101d01444 - core::panicking::panic_fmt::h4f2054f72ff905b1
  12:        0x10d327b98 - rustc_query_system[b4230c255e5b9403]::query::plumbing::try_execute_query::<rustc_query_impl[bcaa985f447c9306]::DynamicConfig<rustc_query_system[b4230c255e5b9403]::query::caches::DefaultCache<(rustc_middle[bded664fc7f58a73]::mir::interpret::value::ConstValue, rustc_middle[bded664fc7f58a73]::ty::Ty), rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 24usize]>>, false, false, false>, rustc_query_impl[bcaa985f447c9306]::plumbing::QueryCtxt, true>
  13:        0x10d4831e0 - rustc_query_impl[bcaa985f447c9306]::query_impl::try_destructure_mir_constant_for_diagnostics::get_query_incr::__rust_end_short_backtrace
  14:        0x100f5c494 - clippy_utils[45953a6625f151f0]::consts::field_of_struct
  15:        0x100f5ac70 - <clippy_utils[45953a6625f151f0]::consts::ConstEvalLateContext>::expr
  16:        0x100fdafc4 - <clippy_utils[45953a6625f151f0]::hir_utils::HirEqInterExpr>::eq_expr
  17:        0x100fdb264 - <clippy_utils[45953a6625f151f0]::hir_utils::HirEqInterExpr>::eq_expr
  18:        0x100fdd568 - clippy_utils[45953a6625f151f0]::hir_utils::eq_expr_value
  19:        0x100cfcebc - clippy_utils[45953a6625f151f0]::search_same::<&rustc_hir[33dde4395bd09da6]::hir::Expr, clippy_lints[e2b0f6397c34f5bd]::copies::lint_same_cond::{closure#0}, clippy_lints[e2b0f6397c34f5bd]::copies::lint_same_cond::{closure#1}>
  20:        0x100d89544 - <clippy_lints[e2b0f6397c34f5bd]::copies::CopyAndPaste as rustc_lint[c404b8ed850dd8f8]::passes::LateLintPass>::check_expr
  21:        0x10dc0f074 - <rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass as rustc_lint[c404b8ed850dd8f8]::passes::LateLintPass>::check_expr
  22:        0x10a333598 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_expr
  23:        0x10a2e4900 - rustc_hir[33dde4395bd09da6]::intravisit::walk_expr::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  24:        0x10a3335a4 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_expr
  25:        0x10a333834 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_body
  26:        0x10a2e1160 - rustc_hir[33dde4395bd09da6]::intravisit::walk_impl_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  27:        0x10a334a34 - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_impl_item
  28:        0x10a2e5a24 - rustc_hir[33dde4395bd09da6]::intravisit::walk_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  29:        0x10a3341cc - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_item
  30:        0x10a2e5540 - rustc_hir[33dde4395bd09da6]::intravisit::walk_item::<rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass>>
  31:        0x10a3341cc - <rustc_lint[c404b8ed850dd8f8]::late::LateContextAndPass<rustc_lint[c404b8ed850dd8f8]::late::RuntimeCombinedLateLintPass> as rustc_hir[33dde4395bd09da6]::intravisit::Visitor>::visit_nested_item
  32:        0x10a330fc4 - rustc_lint[c404b8ed850dd8f8]::late::late_lint_crate::<rustc_lint[c404b8ed850dd8f8]::BuiltinCombinedLateLintPass>
  33:        0x10a2dea80 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_lint[c404b8ed850dd8f8]::late::check_crate<rustc_lint[c404b8ed850dd8f8]::BuiltinCombinedLateLintPass, rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}::{closure#2}::{closure#0}::{closure#0}>::{closure#0}::{closure#0}>
  34:        0x10a2dedf0 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}::{closure#2}::{closure#0}>
  35:        0x10a32fba0 - <core[f9d6478373b114c5]::panic::unwind_safe::AssertUnwindSafe<rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}::{closure#1}> as core[f9d6478373b114c5]::ops::function::FnOnce<()>>::call_once
  36:        0x10a2e03d8 - <rustc_session[81931be3b0b4dc13]::session::Session>::time::<(), rustc_interface[a43b58d3432b23e3]::passes::analysis::{closure#5}>
  37:        0x10a353edc - rustc_interface[a43b58d3432b23e3]::passes::analysis
  38:        0x10d365b74 - rustc_query_impl[bcaa985f447c9306]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 1usize]>>
  39:        0x10d43e964 - <rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::dynamic_query::{closure#2} as core[f9d6478373b114c5]::ops::function::FnOnce<(rustc_middle[bded664fc7f58a73]::ty::context::TyCtxt, ())>>::call_once
  40:        0x10d2dd53c - rustc_query_system[b4230c255e5b9403]::query::plumbing::try_execute_query::<rustc_query_impl[bcaa985f447c9306]::DynamicConfig<rustc_query_system[b4230c255e5b9403]::query::caches::SingleCache<rustc_middle[bded664fc7f58a73]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[bcaa985f447c9306]::plumbing::QueryCtxt, true>
  41:        0x10d3a98f4 - rustc_query_impl[bcaa985f447c9306]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace
  42:        0x10a1fcd64 - <rustc_middle[bded664fc7f58a73]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  43:        0x10a1ce0a4 - <rustc_interface[a43b58d3432b23e3]::interface::Compiler>::enter::<rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}::{closure#2}, core[f9d6478373b114c5]::result::Result<core[f9d6478373b114c5]::option::Option<rustc_interface[a43b58d3432b23e3]::queries::Linker>, rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  44:        0x10a1fba58 - rustc_span[ba98f16c60603a35]::set_source_map::<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  45:        0x10a20e310 - std[5f883c90b3b6ecb9]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[a43b58d3432b23e3]::util::run_in_thread_pool_with_globals<rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>
  46:        0x10a20ef08 - <<std[5f883c90b3b6ecb9]::thread::Builder>::spawn_unchecked_<rustc_interface[a43b58d3432b23e3]::util::run_in_thread_pool_with_globals<rustc_interface[a43b58d3432b23e3]::interface::run_compiler<core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>, rustc_driver_impl[e09643758e6f6376]::run_compiler::{closure#1}>::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[f9d6478373b114c5]::result::Result<(), rustc_span[ba98f16c60603a35]::ErrorGuaranteed>>::{closure#1} as core[f9d6478373b114c5]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  47:        0x101c8dd58 - std::sys::unix::thread::Thread::new::thread_start::h143a83d9ede86d5c
  48:        0x18e46ffa8 - __pthread_joiner_wake

error: 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: rustc 1.72.0 (5680fa18f 2023-08-23) running on aarch64-apple-darwin

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked -C incremental=[REDACTED] -C debuginfo=0

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [try_destructure_mir_constant_for_diagnostics] destructuring MIR constant
#1 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.72 (5680fa18 2023-08-23)

error: could not compile `mz-adapter` (lib test)
@y21
Copy link
Member

y21 commented Sep 20, 2023

Probably a duplicate of #11500

@vmarcos
Copy link
Author

vmarcos commented Sep 20, 2023

Also cannot repro after setting CARGO_INCREMENTAL=0, as suggested in #11500.

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