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

Bug on latest nightly: does not have a "def_span" #110591

Closed
serzhiio opened this issue Apr 20, 2023 · 0 comments · Fixed by #110469
Closed

Bug on latest nightly: does not have a "def_span" #110591

serzhiio opened this issue Apr 20, 2023 · 0 comments · Fixed by #110469
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@serzhiio
Copy link

The part of ExchangeCommonTrait:

pub trait ExchangeCommonTrait<IntercomMain: Debug, IntercomSelf: Debug> {
    type LoopContext;
    type LoopEvent<'a>;
    ...
}

And backtrace:

   Compiling dummy_exchange v0.1.0 (/home/serzh-dev/dev/apps/@exchanges/dummy_exchange)
thread 'rustc' panicked at 'DefId(20:34 ~ commonlib[e6dd]::traits::ExchangeCommonTrait::LoopEvent::'a) does not have a "def_span"', compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs:205:1
stack backtrace:
   0:     0x7f5009168d43 - std::backtrace_rs::backtrace::libunwind::trace::h2a7e49770a0c8eb3
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f5009168d43 - std::backtrace_rs::backtrace::trace_unsynchronized::h6a543332a97578fa
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f5009168d43 - std::sys_common::backtrace::_print_fmt::heb3e5fffa7940917
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f5009168d43 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h810a6e7cce2ac2e2
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f50091c9daf - core::fmt::write::h9ad46b7c2a3eb976
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/core/src/fmt/mod.rs:1254:17
   5:     0x7f500915bd01 - std::io::Write::write_fmt::h1c9baacb87e6b9c9
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/io/mod.rs:1698:15
   6:     0x7f5009168b55 - std::sys_common::backtrace::_print::hca33eaa945a8a7ce
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f5009168b55 - std::sys_common::backtrace::print::h00199beaff62c71c
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f500916b807 - std::panicking::default_hook::{{closure}}::hd62eb02492041726
   9:     0x7f500916b5f5 - std::panicking::default_hook::hb077d6100095f68a
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:288:9
  10:     0x7f500c4416e5 - <rustc_driver_impl[fc06c256dc1cd1a9]::DEFAULT_HOOK::{closure#0}::{closure#0} as core[87dac7cd678aec56]::ops::function::FnOnce<(&core[87dac7cd678aec56]::panic::panic_info::PanicInfo,)>>::call_once::{shim:vtable#0}
  11:     0x7f500916bf45 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h616a4bdc344416e6
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1976:9
  12:     0x7f500916bf45 - std::panicking::rust_panic_with_hook::hd2d604a080396eb9
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:695:13
  13:     0x7f500916bcb9 - std::panicking::begin_panic_handler::{{closure}}::hef7388b0e2f667d6
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:582:13
  14:     0x7f5009169186 - std::sys_common::backtrace::__rust_end_short_backtrace::h05a11aebb69a9976
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys_common/backtrace.rs:150:18
  15:     0x7f500916ba12 - rust_begin_unwind
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/panicking.rs:578:5
  16:     0x7f50091c6043 - core::panicking::panic_fmt::h075b12f8428be69a
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/core/src/panicking.rs:67:14
  17:     0x7f500c872182 - rustc_metadata[243705a7466017b]::rmeta::decoder::cstore_impl::provide_extern::def_span::{closure#2}
  18:     0x7f500bd6b32b - rustc_metadata[243705a7466017b]::rmeta::decoder::cstore_impl::provide_extern::def_span
  19:     0x7f500ae8deeb - <std[ca44723e5ea5c648]::thread::local::LocalKey<core[87dac7cd678aec56]::cell::Cell<*const ()>>>::with::<rustc_middle[6b53c1a405df2db5]::ty::context::tls::enter_context<rustc_query_system[cc3f2816497b0dda]::query::plumbing::execute_job_incr<rustc_query_impl[d5b511e0af106fac]::queries::def_span, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>
  20:     0x7f500ae8b561 - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::<rustc_query_impl[d5b511e0af106fac]::queries::def_span, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>
  21:     0x7f500ae8a0ba - <rustc_query_impl[d5b511e0af106fac]::Queries as rustc_middle[6b53c1a405df2db5]::ty::query::QueryEngine>::def_span
  22:     0x7f500c51ef34 - <&mut <rustc_hir_analysis[b76cf653628f06f0]::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs>::show_definition::{closure#0} as core[87dac7cd678aec56]::ops::function::FnOnce<(&rustc_middle[6b53c1a405df2db5]::ty::generics::GenericParamDef,)>>::call_once
  23:     0x7f500c59abdc - <alloc[27ecb065d74dda4e]::vec::Vec<alloc[27ecb065d74dda4e]::string::String> as alloc[27ecb065d74dda4e]::vec::spec_from_iter::SpecFromIter<alloc[27ecb065d74dda4e]::string::String, core[87dac7cd678aec56]::iter::adapters::map::Map<core[87dac7cd678aec56]::iter::adapters::map::Map<core[87dac7cd678aec56]::iter::adapters::take::Take<core[87dac7cd678aec56]::iter::adapters::skip::Skip<core[87dac7cd678aec56]::slice::iter::Iter<rustc_middle[6b53c1a405df2db5]::ty::generics::GenericParamDef>>>, <rustc_hir_analysis[b76cf653628f06f0]::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs>::show_definition::{closure#0}>, <rustc_hir_analysis[b76cf653628f06f0]::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs>::show_definition::{closure#1}>>>::from_iter
  24:     0x7f500c523a90 - <rustc_hir_analysis[b76cf653628f06f0]::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs as rustc_hir_analysis[b76cf653628f06f0]::structured_errors::StructuredDiagnostic>::diagnostic_common
  25:     0x7f500c525102 - <rustc_hir_analysis[b76cf653628f06f0]::structured_errors::wrong_number_of_generic_args::WrongNumberOfGenericArgs as rustc_hir_analysis[b76cf653628f06f0]::structured_errors::StructuredDiagnostic>::diagnostic
  26:     0x7f500b633647 - <dyn rustc_hir_analysis[b76cf653628f06f0]::astconv::AstConv>::create_substs_for_associated_item
  27:     0x7f500b18a3be - <dyn rustc_hir_analysis[b76cf653628f06f0]::astconv::AstConv>::associated_path_to_ty::{closure#0}
  28:     0x7f500b1704f2 - <dyn rustc_hir_analysis[b76cf653628f06f0]::astconv::AstConv>::ast_ty_to_ty_inner::{closure#0}
  29:     0x7f500a78175f - <dyn rustc_hir_analysis[b76cf653628f06f0]::astconv::AstConv>::ty_of_fn::{closure#0}
  30:     0x7f500b1ad033 - rustc_hir_analysis[b76cf653628f06f0]::collect::fn_sig
  31:     0x7f500b1af660 - <std[ca44723e5ea5c648]::thread::local::LocalKey<core[87dac7cd678aec56]::cell::Cell<*const ()>>>::with::<rustc_middle[6b53c1a405df2db5]::ty::context::tls::enter_context<rustc_query_system[cc3f2816497b0dda]::query::plumbing::execute_job_incr<rustc_query_impl[d5b511e0af106fac]::queries::fn_sig, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 24usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 24usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>
  32:     0x7f500b1ac959 - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::<rustc_query_impl[d5b511e0af106fac]::queries::fn_sig, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>
  33:     0x7f500a7d730a - <rustc_hir_analysis[b76cf653628f06f0]::collect::CollectItemTypesVisitor as rustc_hir[90ff4a02f3a736a3]::intravisit::Visitor>::visit_impl_item
  34:     0x7f500a7d2224 - <rustc_middle[6b53c1a405df2db5]::hir::map::Map>::visit_item_likes_in_module::<rustc_hir_analysis[b76cf653628f06f0]::collect::CollectItemTypesVisitor>
  35:     0x7f500a7d20bc - rustc_hir_analysis[b76cf653628f06f0]::collect::collect_mod_item_types
  36:     0x7f500ba6b4bb - <std[ca44723e5ea5c648]::thread::local::LocalKey<core[87dac7cd678aec56]::cell::Cell<*const ()>>>::with::<rustc_middle[6b53c1a405df2db5]::ty::context::tls::enter_context<rustc_query_system[cc3f2816497b0dda]::query::plumbing::execute_job_incr<rustc_query_impl[d5b511e0af106fac]::queries::collect_mod_item_types, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 0usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 0usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>
  37:     0x7f500ba6ad2d - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::<rustc_query_impl[d5b511e0af106fac]::queries::collect_mod_item_types, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>
  38:     0x7f500ba6a749 - <rustc_query_impl[d5b511e0af106fac]::Queries as rustc_middle[6b53c1a405df2db5]::ty::query::QueryEngine>::collect_mod_item_types
  39:     0x7f500b80d5dc - <rustc_middle[6b53c1a405df2db5]::hir::map::Map>::for_each_module::<rustc_hir_analysis[b76cf653628f06f0]::check_crate::{closure#0}::{closure#0}::{closure#0}>
  40:     0x7f500b80974c - rustc_hir_analysis[b76cf653628f06f0]::check_crate
  41:     0x7f500b803bad - rustc_interface[582898756836a6b1]::passes::analysis
  42:     0x7f500bba3d73 - <std[ca44723e5ea5c648]::thread::local::LocalKey<core[87dac7cd678aec56]::cell::Cell<*const ()>>>::with::<rustc_middle[6b53c1a405df2db5]::ty::context::tls::enter_context<rustc_query_system[cc3f2816497b0dda]::query::plumbing::execute_job_incr<rustc_query_impl[d5b511e0af106fac]::queries::analysis, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>::{closure#2}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>::{closure#0}, (rustc_middle[6b53c1a405df2db5]::query::erase::Erased<[u8; 1usize]>, rustc_query_system[cc3f2816497b0dda]::dep_graph::graph::DepNodeIndex)>
  43:     0x7f500bba384b - rustc_query_system[cc3f2816497b0dda]::query::plumbing::try_execute_query::<rustc_query_impl[d5b511e0af106fac]::queries::analysis, rustc_query_impl[d5b511e0af106fac]::plumbing::QueryCtxt>
  44:     0x7f500bba3410 - <rustc_query_impl[d5b511e0af106fac]::Queries as rustc_middle[6b53c1a405df2db5]::ty::query::QueryEngine>::analysis
  45:     0x7f500ba640e6 - <std[ca44723e5ea5c648]::thread::local::LocalKey<core[87dac7cd678aec56]::cell::Cell<*const ()>>>::with::<rustc_middle[6b53c1a405df2db5]::ty::context::tls::enter_context<<rustc_middle[6b53c1a405df2db5]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
  46:     0x7f500b63dca8 - <rustc_interface[582898756836a6b1]::interface::Compiler>::enter::<rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}::{closure#2}, core[87dac7cd678aec56]::result::Result<core[87dac7cd678aec56]::option::Option<rustc_interface[582898756836a6b1]::queries::Linker>, rustc_span[35742d543528875]::ErrorGuaranteed>>
  47:     0x7f500b637caf - rustc_span[35742d543528875]::set_source_map::<core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>, rustc_interface[582898756836a6b1]::interface::run_compiler<core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
  48:     0x7f500b6378c8 - <scoped_tls[73fb7a08bc8a4c85]::ScopedKey<rustc_span[35742d543528875]::SessionGlobals>>::set::<rustc_interface[582898756836a6b1]::interface::run_compiler<core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
  49:     0x7f500b636edb - std[ca44723e5ea5c648]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[582898756836a6b1]::util::run_in_thread_pool_with_globals<rustc_interface[582898756836a6b1]::interface::run_compiler<core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>
  50:     0x7f500bd09431 - <<std[ca44723e5ea5c648]::thread::Builder>::spawn_unchecked_<rustc_interface[582898756836a6b1]::util::run_in_thread_pool_with_globals<rustc_interface[582898756836a6b1]::interface::run_compiler<core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>, rustc_driver_impl[fc06c256dc1cd1a9]::run_compiler::{closure#1}>::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[87dac7cd678aec56]::result::Result<(), rustc_span[35742d543528875]::ErrorGuaranteed>>::{closure#1} as core[87dac7cd678aec56]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  51:     0x7f50091763d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::haab69effe0fa19e3
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9
  52:     0x7f50091763d5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb0775fd74e9e7829
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/alloc/src/boxed.rs:1962:9
  53:     0x7f50091763d5 - std::sys::unix::thread::Thread::new::thread_start::h0e7436fc32c0c985
                               at /rustc/39c6804b92aa202369e402525cee329556bc1db0/library/std/src/sys/unix/thread.rs:108:17
  54:     0x7f5008f2012d - start_thread
  55:     0x7f5008fa1bc0 - clone3
  56:                0x0 - <unknown>

error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.71.0-nightly (39c6804b9 2023-04-19) running on x86_64-unknown-linux-gnu

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

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

@serzhiio serzhiio added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 20, 2023
@bors bors closed this as completed in 37b22cf Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant