Skip to content

ICE: Span must not be empty and have no suggestion #107705

Closed
@matthiaskrgr

Description

@matthiaskrgr

Code

requires debug assertions!

fn f() {a(b:&,

Meta

rustc --version --verbose:

rustc 1.69.0-nightly (a67649675 2023-02-05)
binary: rustc
commit-hash: a67649675014546ce454d65bc8fe3ebd18e6a319
commit-date: 2023-02-05
host: x86_64-unknown-linux-gnu
release: 1.69.0-nightly
LLVM version: 15.0.7

Error output

error: this file contains an unclosed delimiter
 --> /tmp/bad3.rs:1:16
  |
1 | fn f() {a(b:&,
  |        - -     ^
  |        | |
  |        | unclosed delimiter
  |        unclosed delimiter

error: expected expression, found `,`
 --> /tmp/bad3.rs:1:14
  |
1 | fn f() {a(b:&,
  |         -    ^ expected expression
  |         |
  |         while parsing this struct
Backtrace


thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(SubstitutionPart { span: /tmp/bad3.rs:1:11: 1:11 (#0), snippet: "" })`,
 right: `None`: Span must not be empty and have no suggestion', /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:627:9
stack backtrace:
   0:     0x7f08f8f74a41 - std::backtrace_rs::backtrace::libunwind::trace::h57c700f2e7064cc9
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7f08f8f74a41 - std::backtrace_rs::backtrace::trace_unsynchronized::h3bd6f8115b3aef84
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f08f8f74a41 - std::sys_common::backtrace::_print_fmt::h4e3cd4a1386ea18b
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7f08f8f74a41 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha4399f941a901f68
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f08f8fec128 - core::fmt::write::h3693e9c93ce31d95
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1232:17
   5:     0x7f08f8f3dbef - std::io::Write::write_fmt::h7cd08f6496a9e03d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1684:15
   6:     0x7f08f8f74835 - std::sys_common::backtrace::_print::h1ea264f371a6489b
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x7f08f8f74835 - std::sys_common::backtrace::print::h43e663fef4567fcf
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x7f08f8f36ea4 - std::panicking::default_hook::{{closure}}::h94496c5e3b8314dc
   9:     0x7f08f8f36ea4 - std::panicking::default_hook::h62ce584520972394
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:286:9
  10:     0x7f08fbc44dd2 - <alloc[88ef48cbf1494855]::boxed::Box<dyn for<'a, 'b> core[3a7799eb5b53fe42]::ops::function::Fn<(&'a core[3a7799eb5b53fe42]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[3a7799eb5b53fe42]::marker::Sync + core[3a7799eb5b53fe42]::marker::Send> as core[3a7799eb5b53fe42]::ops::function::Fn<(&core[3a7799eb5b53fe42]::panic::panic_info::PanicInfo,)>>::call
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2002:9
  11:     0x7f08fbc44dd2 - rustc_driver_impl[c64c8ccf98066b14]::DEFAULT_HOOK::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:1164:17
  12:     0x7f08f8f3781b - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h20060c80854d9f26
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2002:9
  13:     0x7f08f8f3781b - std::panicking::rust_panic_with_hook::hf3310e5853e10814
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:692:13
  14:     0x7f08f8f75ed9 - std::panicking::begin_panic_handler::{{closure}}::hb76bc4aa6a51e144
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:579:13
  15:     0x7f08f8f74b8e - std::sys_common::backtrace::__rust_end_short_backtrace::h76df651326f0b61a
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:137:18
  16:     0x7f08f8f37312 - rust_begin_unwind
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:575:5
  17:     0x7f08f8ff3153 - core::panicking::panic_fmt::ha9472d71642ed08e
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:64:14
  18:     0x7f08f8ff3733 - core::panicking::assert_failed_inner::h08d1d4ab99760b32
  19:     0x7f08fd6a80b9 - core[3a7799eb5b53fe42]::panicking::assert_failed::<core[3a7799eb5b53fe42]::option::Option<&rustc_errors[9e83615d379720b2]::SubstitutionPart>, core[3a7799eb5b53fe42]::option::Option<&rustc_errors[9e83615d379720b2]::SubstitutionPart>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:211:5
  20:     0x7f08fd6d99c2 - <rustc_errors[9e83615d379720b2]::diagnostic::Diagnostic>::multipart_suggestion_with_style::<rustc_error_messages[87ef96e77df7413c]::SubdiagnosticMessage>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:627:9
  21:     0x7f08fd6f3161 - <rustc_parse[a2655adca2565e68]::errors::NoFieldsForFnCall as rustc_errors[9e83615d379720b2]::diagnostic::AddToDiagnostic>::add_to_diagnostic_with::<<rustc_parse[a2655adca2565e68]::errors::NoFieldsForFnCall as rustc_errors[9e83615d379720b2]::diagnostic::AddToDiagnostic>::add_to_diagnostic::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/errors.rs:596:10
  22:     0x7f08fd6f3161 - <rustc_parse[a2655adca2565e68]::errors::NoFieldsForFnCall as rustc_errors[9e83615d379720b2]::diagnostic::AddToDiagnostic>::add_to_diagnostic
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:79:9
  23:     0x7f08fd7006c7 - <rustc_errors[9e83615d379720b2]::diagnostic::Diagnostic>::subdiagnostic::<rustc_parse[a2655adca2565e68]::errors::NoFieldsForFnCall>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic.rs:903:9
  24:     0x7f08fd7006c7 - <rustc_errors[9e83615d379720b2]::diagnostic_builder::DiagnosticBuilder<rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::subdiagnostic::<rustc_parse[a2655adca2565e68]::errors::NoFieldsForFnCall>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic_builder.rs:481:13
  25:     0x7f08fd7006c7 - <rustc_parse[a2655adca2565e68]::errors::ParenthesesWithStructFields as rustc_errors[9e83615d379720b2]::diagnostic_builder::IntoDiagnostic>::into_diagnostic
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/errors.rs:575:10
  26:     0x7f08fd5dd6fd - <rustc_parse[a2655adca2565e68]::parser::Parser>::maybe_recover_struct_lit_bad_delims
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:1201:55
  27:     0x7f08fd5dd6fd - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_fn_call_expr
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:1167:13
  28:     0x7f08fd5dd6fd - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_dot_or_call_expr_with_
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:988:61
  29:     0x7f08fd5d89f1 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_dot_or_call_expr_with
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:944:19
  30:     0x7f08fd63ae8a - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_path_start::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:156:17
  31:     0x7f08fd63ae8a - <rustc_parse[a2655adca2565e68]::parser::Parser>::with_res::<core[3a7799eb5b53fe42]::result::Result<rustc_ast[67da8ea2e7591207]::ptr::P<rustc_ast[67da8ea2e7591207]::ast::Expr>, rustc_errors[9e83615d379720b2]::diagnostic_builder::DiagnosticBuilder<rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>, <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_path_start::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/mod.rs:1378:19
  32:     0x7f08fd63ae8a - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_path_start::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:155:24
  33:     0x7f08fd63ae8a - <rustc_parse[a2655adca2565e68]::parser::Parser>::collect_tokens_trailing_token::<rustc_ast[67da8ea2e7591207]::ast::Stmt, <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_path_start::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/attr_wrapper.rs:223:19
  34:     0x7f08fd63ae8a - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_path_start
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:136:20
  35:     0x7f08fd639410 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_stmt_without_recovery
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:99:37
  36:     0x7f08fd64016b - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_full_stmt
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:590:30
  37:     0x7f08fd63fb12 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_block_tail
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:559:30
  38:     0x7f08fd63f84b - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_block_common
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/stmt.rs:534:21
  39:     0x7f08fd61d6fb - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_fn_body
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:2142:13
  40:     0x7f08fd61d6fb - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_fn
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:2115:20
  41:     0x7f08fd6070cf - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_kind
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:223:17
  42:     0x7f08fd60509f - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_common_
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:161:20
  43:     0x7f08fd60509f - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_common::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:142:21
  44:     0x7f08fd60509f - <rustc_parse[a2655adca2565e68]::parser::Parser>::collect_tokens_trailing_token::<core[3a7799eb5b53fe42]::option::Option<rustc_ast[67da8ea2e7591207]::ast::Item>, <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_common::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/attr_wrapper.rs:223:19
  45:     0x7f08fd60509f - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_common
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:140:13
  46:     0x7f08fd604874 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item_
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:117:9
  47:     0x7f08fd6038d2 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_item
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:106:9
  48:     0x7f08fd6038d2 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_mod
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:75:32
  49:     0x7f08fd729ed4 - <rustc_parse[a2655adca2565e68]::parser::Parser>::parse_crate_mod
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/item.rs:44:37
  50:     0x7f08fd729ed4 - rustc_parse[a2655adca2565e68]::parse_crate_from_file
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/lib.rs:62:5
  51:     0x7f08fc923184 - rustc_interface[df52044673a04e8b]::passes::parse::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:50:30
  52:     0x7f08fc923184 - <rustc_data_structures[3154e4d7ef9f97f8]::profiling::VerboseTimingGuard>::run::<core[3a7799eb5b53fe42]::result::Result<rustc_ast[67da8ea2e7591207]::ast::Crate, rustc_errors[9e83615d379720b2]::diagnostic_builder::DiagnosticBuilder<rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>, rustc_interface[df52044673a04e8b]::passes::parse::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_data_structures/src/profiling.rs:723:9
  53:     0x7f08fc923184 - <rustc_session[c28864ed605f8943]::session::Session>::time::<core[3a7799eb5b53fe42]::result::Result<rustc_ast[67da8ea2e7591207]::ast::Crate, rustc_errors[9e83615d379720b2]::diagnostic_builder::DiagnosticBuilder<rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>, rustc_interface[df52044673a04e8b]::passes::parse::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/utils.rs:10:50
  54:     0x7f08fc8ddaff - rustc_interface[df52044673a04e8b]::passes::parse
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/passes.rs:49:17
  55:     0x7f08fc9176c6 - <rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:132:25
  56:     0x7f08fc9176c6 - <rustc_interface[df52044673a04e8b]::queries::Query<rustc_ast[67da8ea2e7591207]::ast::Crate>>::compute::<<rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:43:41
  57:     0x7f08fc9176c6 - <core[3a7799eb5b53fe42]::option::Option<core[3a7799eb5b53fe42]::result::Result<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<rustc_ast[67da8ea2e7591207]::ast::Crate>, rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>>::get_or_insert_with::<<rustc_interface[df52044673a04e8b]::queries::Query<rustc_ast[67da8ea2e7591207]::ast::Crate>>::compute<<rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/option.rs:1593:49
  58:     0x7f08fc9176c6 - <rustc_interface[df52044673a04e8b]::queries::Query<rustc_ast[67da8ea2e7591207]::ast::Crate>>::compute::<<rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:43:17
  59:     0x7f08fc9176c6 - <core[3a7799eb5b53fe42]::cell::RefMut<core[3a7799eb5b53fe42]::option::Option<core[3a7799eb5b53fe42]::result::Result<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<rustc_ast[67da8ea2e7591207]::ast::Crate>, rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>>>::filter_map::<rustc_data_structures[3154e4d7ef9f97f8]::steal::Steal<rustc_ast[67da8ea2e7591207]::ast::Crate>, <rustc_interface[df52044673a04e8b]::queries::Query<rustc_ast[67da8ea2e7591207]::ast::Crate>>::compute<<rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/cell.rs:1588:15
  60:     0x7f08fc9176c6 - <rustc_interface[df52044673a04e8b]::queries::Query<rustc_ast[67da8ea2e7591207]::ast::Crate>>::compute::<<rustc_interface[df52044673a04e8b]::queries::Queries>::parse::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:40:9
  61:     0x7f08fc9176c6 - <rustc_interface[df52044673a04e8b]::queries::Queries>::parse
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:131:9
  62:     0x7f08fbcd6082 - rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}::{closure#2}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:294:13
  63:     0x7f08fbcd6082 - <rustc_interface[df52044673a04e8b]::interface::Compiler>::enter::<rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}::{closure#2}, core[3a7799eb5b53fe42]::result::Result<core[3a7799eb5b53fe42]::option::Option<rustc_interface[df52044673a04e8b]::queries::Linker>, rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/queries.rs:386:19
  64:     0x7f08fbc46445 - rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver_impl/src/lib.rs:292:22
  65:     0x7f08fbc46445 - rustc_interface[df52044673a04e8b]::interface::run_compiler::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:300:21
  66:     0x7f08fbc46445 - rustc_span[bb644a7833b5c27d]::with_source_map::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:1026:5
  67:     0x7f08fbcd7399 - rustc_interface[df52044673a04e8b]::interface::run_compiler::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/interface.rs:294:13
  68:     0x7f08fbcd7399 - <scoped_tls[3e8267cb6b5069b8]::ScopedKey<rustc_span[bb644a7833b5c27d]::SessionGlobals>>::set::<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>
                               at /home/matthias/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:137:9
  69:     0x7f08fbc731cf - rustc_span[bb644a7833b5c27d]::create_session_globals_then::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}>
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_span/src/lib.rs:111:5
  70:     0x7f08fbc731cf - rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals::<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_interface/src/util.rs:147:38
  71:     0x7f08fbc731cf - std[a3e1a1d40e09fad4]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:121:18
  72:     0x7f08fbc57c93 - <std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_::<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}::{closure#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:558:17
  73:     0x7f08fbc57c93 - <core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}::{closure#0}> as core[3a7799eb5b53fe42]::ops::function::FnOnce<()>>::call_once
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panic/unwind_safe.rs:271:9
  74:     0x7f08fbc57c93 - std[a3e1a1d40e09fad4]::panicking::try::do_call::<core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:483:40
  75:     0x7f08fbc57c93 - std[a3e1a1d40e09fad4]::panicking::try::<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:447:19
  76:     0x7f08fbc57c93 - std[a3e1a1d40e09fad4]::panic::catch_unwind::<core[3a7799eb5b53fe42]::panic::unwind_safe::AssertUnwindSafe<<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}::{closure#0}>, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panic.rs:140:14
  77:     0x7f08fbc57c93 - <std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_::<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/thread/mod.rs:557:30
  78:     0x7f08fbc57c93 - <<std[a3e1a1d40e09fad4]::thread::Builder>::spawn_unchecked_<rustc_interface[df52044673a04e8b]::util::run_in_thread_pool_with_globals<rustc_interface[df52044673a04e8b]::interface::run_compiler<core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>, rustc_driver_impl[c64c8ccf98066b14]::run_compiler::{closure#1}>::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[3a7799eb5b53fe42]::result::Result<(), rustc_errors[9e83615d379720b2]::ErrorGuaranteed>>::{closure#1} as core[3a7799eb5b53fe42]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
                               at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/ops/function.rs:250:5
  79:     0x7f08f8f24698 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1de6d10e235e916d
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1988:9
  80:     0x7f08f8f24698 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7d484493755f58f7
                               at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:1988:9
  81:     0x7f08f8f091a5 - std::sys::unix::thread::Thread::new::thread_start::hc0cec0ea00f343dd
                               at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys/unix/thread.rs:108:17
  82:     0x7f08f909f8fd - <unknown>
  83:     0x7f08f9121d20 - <unknown>
  84:                0x0 - <unknown>

error: internal compiler error: unexpected panic

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

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

note: rustc 1.69.0-dev running on x86_64-unknown-linux-gnu

query stack during panic:
end of query stack
error: aborting due to 2 previous errors

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some way

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions