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

ICE suggestion must not have overlapping parts with nested, malformed macro decl #118786

Closed
matthiaskrgr opened this issue Dec 9, 2023 · 2 comments · Fixed by #118928
Closed
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

Code

macro_rules! make_macro {
    ($macro_name:tt $($matcher:tt)*) => {
        #[macro_export]
        macro_rules! $macro_name [T; 0]
    }
}
make_macro! {
    (<= $($matcher)* =>) => {};
}

Meta

rustc --version --verbose:

f967532a47eb728ada44473a5c4c2eca1a45fe30

Error output

The problem seems to be this:

error: macros that expand to items must be delimited with braces or followed by a semicolon (note how the `r` is green)
 --> 92998.rs:4:22
  |
4 |         macro_rules! $macro_name [T; 0]
  |                      ^^^^^^^^^^^
  |
help: change the delimiters to curly braces
  |
4 |         macro_rules! {} [T; 0]
  |                      ~
help: add a semicolon
  |
4 |         macro_rules! $macro_name; [T; 0]
  |                                 +

But it looks like rustc already gets the span wrong:
spans

@matthiaskrgr matthiaskrgr added 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. C-bug Category: This is a bug. labels Dec 9, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 9, 2023
@matthiaskrgr
Copy link
Member Author

Backtrace

Backtrace

thread 'rustc' panicked at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:611:9:
assertion `left == right` failed: suggestion must not have overlapping parts
  left: Some([SubstitutionPart { span: 92998.rs:4:22: 4:33 (#0), snippet: "{" }, SubstitutionPart { span: 92998.rs:4:22: 4:33 (#0), snippet: "}" }])
 right: None
stack backtrace:
   0:     0x7f536754cdb1 - std::backtrace_rs::backtrace::libunwind::trace::haa5856fbebd5c8fb
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7f536754cdb1 - std::backtrace_rs::backtrace::trace_unsynchronized::h6dbada5e48931156
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f536754cdb1 - std::sys_common::backtrace::_print_fmt::h92b5e6a60399994c
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7f536754cdb1 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2684e8436f4bc9ae
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f53675c510f - core::fmt::rt::Argument::fmt::h7cf61febdbae07c7
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/rt.rs:142:9
   5:     0x7f53675c510f - core::fmt::write::hf750ecad86d2e1ec
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1120:17
   6:     0x7f53675381e5 - std::io::Write::write_fmt::h2c71f0e441ecef5d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1810:15
   7:     0x7f536754cb84 - std::sys_common::backtrace::_print::h7b00c0fa08bd987a
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7f536754cb84 - std::sys_common::backtrace::print::h4089126d3afaaed1
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7f536754dc0c - std::panicking::default_hook::{{closure}}::h21459b57c9f8288e
  10:     0x7f536754d8d3 - std::panicking::default_hook::ha47cb0c6541aada4
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:292:9
  11:     0x7f536a0ae797 - rustc_driver_impl[100d717c794d9707]::install_ice_hook::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1346:17
  12:     0x7f536a0ae797 - <alloc[39b2f8a3212b79f8]::boxed::Box<rustc_driver_impl[100d717c794d9707]::install_ice_hook::{closure#0}> as core[dd9a4f8bbffd0ef3]::ops::function::Fn<(&dyn for<'a, 'b> core[dd9a4f8bbffd0ef3]::ops::function::Fn<(&'a core[dd9a4f8bbffd0ef3]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[dd9a4f8bbffd0ef3]::marker::Send + core[dd9a4f8bbffd0ef3]::marker::Sync, &core[dd9a4f8bbffd0ef3]::panic::panic_info::PanicInfo)>>::call
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2029:9
  13:     0x7f536754e577 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4f515263a662887f
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2029:9
  14:     0x7f536754e577 - std::panicking::rust_panic_with_hook::hb6c3ddeb6c48f6e7
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:783:13
  15:     0x7f536754e2ee - std::panicking::begin_panic_handler::{{closure}}::h69b922a767453fda
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:657:13
  16:     0x7f536754d076 - std::sys_common::backtrace::__rust_end_short_backtrace::h379fe54222983e80
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:171:18
  17:     0x7f536754dff2 - rust_begin_unwind
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:645:5
  18:     0x7f53675ce345 - core::panicking::panic_fmt::hbd5ae1c4b762a43d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:72:14
  19:     0x7f53675cea5b - core::panicking::assert_failed_inner::h64c63aeffc1034f3
  20:     0x7f536bc2155f - core[dd9a4f8bbffd0ef3]::panicking::assert_failed::<core[dd9a4f8bbffd0ef3]::option::Option<&[rustc_errors[8ba289802e317264]::SubstitutionPart; 2usize]>, core[dd9a4f8bbffd0ef3]::option::Option<&[rustc_errors[8ba289802e317264]::SubstitutionPart; 2usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:297:5
  21:     0x7f536bc0d63d - <rustc_errors[8ba289802e317264]::diagnostic::Diagnostic>::multipart_suggestion_with_style::<&str>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:611:9
  22:     0x7f536bb04d52 - <rustc_errors[8ba289802e317264]::diagnostic::Diagnostic>::multipart_suggestion::<&str>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:567:9
  23:     0x7f536bb04d52 - <rustc_errors[8ba289802e317264]::diagnostic_builder::DiagnosticBuilder<rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::multipart_suggestion::<&str>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic_builder.rs:321:35
  24:     0x7f536bb04d52 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::report_invalid_macro_expansion_item
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:2122:17
  25:     0x7f536bb04d52 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::eat_semi_for_macro_if_needed
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:2108:13
  26:     0x7f536baefa70 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_macro
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:462:17
  27:     0x7f536baee00e - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_kind
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:316:50
  28:     0x7f536baea3e8 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_common_
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:155:20
  29:     0x7f536baea3e8 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_common::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:138:21
  30:     0x7f536baea3e8 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::collect_tokens_trailing_token::<core[dd9a4f8bbffd0ef3]::option::Option<rustc_ast[333426fde771335]::ast::Item>, <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_common::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/attr_wrapper.rs:222:19
  31:     0x7f536baea3e8 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_common
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:136:13
  32:     0x7f536bae9cc5 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item_
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:112:9
  33:     0x7f536bae9af7 - <rustc_parse[1d45cf72e55d50f9]::parser::Parser>::parse_item
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:101:9
  34:     0x7f536a275233 - rustc_expand[636edfd9a18d8776]::expand::parse_ast_fragment
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:876:36
  35:     0x7f536a2e72ba - <rustc_expand[636edfd9a18d8776]::mbe::macro_rules::ParserAnyMacro>::make
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/mbe/macro_rules.rs:65:30
  36:     0x7f536a2ef9fa - <rustc_expand[636edfd9a18d8776]::mbe::macro_rules::ParserAnyMacro as rustc_expand[636edfd9a18d8776]::base::MacResult>::make_items
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:162:22
  37:     0x7f536a282359 - <rustc_expand[636edfd9a18d8776]::expand::AstFragmentKind>::make_from
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:84:49
  38:     0x7f536a270735 - <rustc_expand[636edfd9a18d8776]::expand::MacroExpander>::expand_invoc
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:662:56
  39:     0x7f536a270735 - <rustc_expand[636edfd9a18d8776]::expand::MacroExpander>::fully_expand_fragment
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:475:62
  40:     0x7f536a26f0d1 - <rustc_expand[636edfd9a18d8776]::expand::MacroExpander>::expand_crate
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_expand/src/expand.rs:402:21
  41:     0x7f536ad1d87c - rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:204:50
  42:     0x7f536ad1d87c - <rustc_data_structures[566eb591dc4624c5]::profiling::VerboseTimingGuard>::run::<rustc_ast[333426fde771335]::ast::Crate, rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:752:9
  43:     0x7f536ad1d87c - <rustc_session[329556fc1ec9945]::session::Session>::time::<rustc_ast[333426fde771335]::ast::Crate, rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:12:9
  44:     0x7f536ad1d87c - rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:204:21
  45:     0x7f536ad1d87c - <rustc_data_structures[566eb591dc4624c5]::profiling::VerboseTimingGuard>::run::<rustc_ast[333426fde771335]::ast::Crate, rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:752:9
  46:     0x7f536ad1d87c - <rustc_session[329556fc1ec9945]::session::Session>::time::<rustc_ast[333426fde771335]::ast::Crate, rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand::{closure#1}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:12:9
  47:     0x7f536adc6caa - rustc_interface[5dffe3bf3e13ab7c]::passes::configure_and_expand
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:156:13
  48:     0x7f536adc6caa - rustc_interface[5dffe3bf3e13ab7c]::passes::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:546:17
  49:     0x7f536bf69551 - rustc_query_impl[cd6e78e0d6fe079e]::query_impl::resolver_for_lowering::dynamic_query::{closure#2}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:586:47
  50:     0x7f536bf69551 - rustc_query_impl[cd6e78e0d6fe079e]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[cd6e78e0d6fe079e]::query_impl::resolver_for_lowering::dynamic_query::{closure#2}::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:510:18
  51:     0x7f536c0a5f99 - rustc_query_impl[cd6e78e0d6fe079e]::query_impl::resolver_for_lowering::dynamic_query::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:582:25
  52:     0x7f536c0a5f99 - <rustc_query_impl[cd6e78e0d6fe079e]::query_impl::resolver_for_lowering::dynamic_query::{closure#2} as core[dd9a4f8bbffd0ef3]::ops::function::FnOnce<(rustc_middle[3aa34c9d6e8ca729]::ty::context::TyCtxt, ())>>::call_once
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
  53:     0x7f536be305cc - <rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false> as rustc_query_system[7c5d5fc140a72d5e]::query::config::QueryConfig<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>>::compute
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/lib.rs:119:9
  54:     0x7f536be305cc - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:464:72
  55:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context::<rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  56:     0x7f536be305cc - <std[f19f767d9e498e03]::thread::local::LocalKey<core[dd9a4f8bbffd0ef3]::cell::Cell<*const ()>>>::try_with::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context<rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:270:16
  57:     0x7f536be305cc - <std[f19f767d9e498e03]::thread::local::LocalKey<core[dd9a4f8bbffd0ef3]::cell::Cell<*const ()>>>::with::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context<rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:246:9
  58:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context::<rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:9
  59:     0x7f536be305cc - <rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query::<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:151:13
  60:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_related_context::<<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:133:9
  61:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_context::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_related_context<<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:36
  62:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_context_opt::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_context<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_related_context<<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:100:18
  63:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_context::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_related_context<<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:111:5
  64:     0x7f536be305cc - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::with_related_context::<<rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>::{closure#0}, rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:124:5
  65:     0x7f536be305cc - <rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt as rustc_query_system[7c5d5fc140a72d5e]::query::QueryContext>::start_query::<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:136:9
  66:     0x7f536be305cc - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job_non_incr::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:464:18
  67:     0x7f536be305cc - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::execute_job::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt, false>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:397:9
  68:     0x7f536be305cc - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::try_execute_query::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt, false>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:340:13
  69:     0x7f536c14939c - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::get_query_non_incr::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:796:32
  70:     0x7f536c14939c - stacker[f536145056256cf6]::maybe_grow::<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::get_query_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stacker-0.1.15/src/lib.rs:55:9
  71:     0x7f536c14939c - rustc_data_structures[566eb591dc4624c5]::stack::ensure_sufficient_stack::<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::get_query_non_incr<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/stack.rs:17:5
  72:     0x7f536c14939c - rustc_query_system[7c5d5fc140a72d5e]::query::plumbing::get_query_non_incr::<rustc_query_impl[cd6e78e0d6fe079e]::DynamicConfig<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[cd6e78e0d6fe079e]::plumbing::QueryCtxt>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_system/src/query/plumbing.rs:796:5
  73:     0x7f536c14939c - rustc_query_impl[cd6e78e0d6fe079e]::query_impl::resolver_for_lowering::get_query_non_incr::__rust_end_short_backtrace
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_query_impl/src/plumbing.rs:560:26
  74:     0x7f536a0c4824 - rustc_middle[3aa34c9d6e8ca729]::query::plumbing::query_get_at::<rustc_query_system[7c5d5fc140a72d5e]::query::caches::SingleCache<rustc_middle[3aa34c9d6e8ca729]::query::erase::Erased<[u8; 8usize]>>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/query/plumbing.rs:156:17
  75:     0x7f536a0c4824 - <rustc_middle[3aa34c9d6e8ca729]::query::plumbing::TyCtxtAt>::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/query/mod.rs:2203:1
  76:     0x7f536a0c4824 - <rustc_middle[3aa34c9d6e8ca729]::ty::context::TyCtxt>::resolver_for_lowering
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/query/plumbing.rs:429:35
  77:     0x7f536a0c4824 - rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:425:52
  78:     0x7f536a0c4824 - <rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:634:37
  79:     0x7f536a0c4824 - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context::<<rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:82:9
  80:     0x7f536a0c4824 - <std[f19f767d9e498e03]::thread::local::LocalKey<core[dd9a4f8bbffd0ef3]::cell::Cell<*const ()>>>::try_with::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context<<rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:270:16
  81:     0x7f536a0c4824 - <std[f19f767d9e498e03]::thread::local::LocalKey<core[dd9a4f8bbffd0ef3]::cell::Cell<*const ()>>>::with::<rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context<<rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/local.rs:246:9
  82:     0x7f536a0c4824 - rustc_middle[3aa34c9d6e8ca729]::ty::context::tls::enter_context::<<rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>::{closure#0}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context/tls.rs:79:9
  83:     0x7f536a0c4824 - <rustc_middle[3aa34c9d6e8ca729]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}::{closure#2}, &rustc_data_structures[566eb591dc4624c5]::steal::Steal<(rustc_middle[3aa34c9d6e8ca729]::ty::ResolverAstLowering, alloc[39b2f8a3212b79f8]::sync::Arc<rustc_ast[333426fde771335]::ast::Crate>)>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_middle/src/ty/context.rs:634:9
  84:     0x7f536a055ff3 - rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:425:13
  85:     0x7f536a055ff3 - <rustc_interface[5dffe3bf3e13ab7c]::interface::Compiler>::enter::<rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<core[dd9a4f8bbffd0ef3]::option::Option<rustc_interface[5dffe3bf3e13ab7c]::queries::Linker>, rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:312:19
  86:     0x7f536a0b0224 - rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:391:22
  87:     0x7f536a0b0224 - rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler::<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:423:21
  88:     0x7f536a0b0224 - rustc_span[fb0f3f99068292c2]::set_source_map::<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:1051:5
  89:     0x7f536a0a29c7 - rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler::<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:417:13
  90:     0x7f536a0a29c7 - rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals::<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:117:13
  91:     0x7f536a0a29c7 - <scoped_tls[a683718ab3dda080]::ScopedKey<rustc_span[fb0f3f99068292c2]::SessionGlobals>>::set::<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>
                               at /home/matthias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scoped-tls-1.0.1/src/lib.rs:137:9
  92:     0x7f536a0b0855 - rustc_span[fb0f3f99068292c2]::create_session_globals_then::<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:130:5
  93:     0x7f536a08aca0 - rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals::<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:79:38
  94:     0x7f536a08aca0 - std[f19f767d9e498e03]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:155:18
  95:     0x7f536a08ea43 - <std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_::<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:529:17
  96:     0x7f536a08ea43 - <core[dd9a4f8bbffd0ef3]::panic::unwind_safe::AssertUnwindSafe<<std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[dd9a4f8bbffd0ef3]::ops::function::FnOnce<()>>::call_once
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:272:9
  97:     0x7f536a08ea43 - std[f19f767d9e498e03]::panicking::try::do_call::<core[dd9a4f8bbffd0ef3]::panic::unwind_safe::AssertUnwindSafe<<std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:552:40
  98:     0x7f536a08ea43 - std[f19f767d9e498e03]::panicking::try::<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, core[dd9a4f8bbffd0ef3]::panic::unwind_safe::AssertUnwindSafe<<std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:516:19
  99:     0x7f536a08ea43 - std[f19f767d9e498e03]::panic::catch_unwind::<core[dd9a4f8bbffd0ef3]::panic::unwind_safe::AssertUnwindSafe<<std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panic.rs:142:14
 100:     0x7f536a08ea43 - <std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_::<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:528:30
 101:     0x7f536a08ea43 - <<std[f19f767d9e498e03]::thread::Builder>::spawn_unchecked_<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_with_globals<rustc_interface[5dffe3bf3e13ab7c]::util::run_in_thread_pool_with_globals<rustc_interface[5dffe3bf3e13ab7c]::interface::run_compiler<core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>, rustc_driver_impl[100d717c794d9707]::run_compiler::{closure#0}>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[dd9a4f8bbffd0ef3]::result::Result<(), rustc_span[fb0f3f99068292c2]::ErrorGuaranteed>>::{closure#1} as core[dd9a4f8bbffd0ef3]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
 102:     0x7f536756155c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hc675f43b1059aead
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2015:9
 103:     0x7f536756155c - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h322e2fe979046b41
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2015:9
 104:     0x7f53675543b5 - std::sys::unix::thread::Thread::new::thread_start::h6eeda87c57585977
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys/unix/thread.rs:108:17
 105:     0x7f53672eb9eb - <unknown>
 106:     0x7f536736f7cc - <unknown>
 107:                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: please attach the file at `/tmp/im7/rustc-ice-2023-12-09T16_28_41-1384302.txt` to your bug report

query stack during panic:
#0 [resolver_for_lowering] getting the resolver for lowering
end of query stack

ST_BACKTRACE=1 cargo build`. -->
Backtrace

<backtrace>

<backtrace>

@matthiaskrgr matthiaskrgr added A-diagnostics Area: Messages for errors, warnings, and lints requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way labels Dec 9, 2023
@saethlin saethlin added C-bug Category: This is a bug. and removed C-bug Category: This is a bug. needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Dec 10, 2023
@EliseZeroTwo
Copy link
Contributor

This appears to stem from the span for the delimited block being changed here. I will work on a fix now and submit it.

@bors bors closed this as completed in 93d3a42 Dec 17, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Dec 17, 2023
Rollup merge of rust-lang#118928 - EliseZeroTwo:EliseZeroTwo/fix-issue-118786, r=cjgillot

fix: Overlapping spans in delimited meta-vars

Closes rust-lang#118786

Delimited meta-vars inside of MBE's spans were set to have the same opening and closing position resulting in an ICE when debug assertions were enabled and an error was present in the templated code.

This ensures that the spans do not overlap, whilst still having the spans point at the usage of the meta-var inside the macro definition.

It includes a regression test.

🖤
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ requires-debug-assertions This issue requires a build of rustc or tooling with debug-assertions in some way 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.

4 participants