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

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

Closed
justcode740 opened this issue Feb 28, 2024 · 3 comments
Closed

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

justcode740 opened this issue Feb 28, 2024 · 3 comments

Comments

@justcode740
Copy link

justcode740 commented Feb 28, 2024

err log:

thread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:42:9:
silent emitter attempted to translate a diagnostic
stack backtrace:
   0:     0x7fc64deefc46 - std::backtrace_rs::backtrace::libunwind::trace::hcd31ff68bb8eb3c8
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7fc64deefc46 - std::backtrace_rs::backtrace::trace_unsynchronized::h14d76bd5509bf096
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fc64deefc46 - std::sys_common::backtrace::_print_fmt::hccb1d92c773f2e33
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7fc64deefc46 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::haec236aae0c71094
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fc64df40bcc - core::fmt::rt::Argument::fmt::hfe5c81d163ead061
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/core/src/fmt/rt.rs:142:9
   5:     0x7fc64df40bcc - core::fmt::write::hae70f68f90cda8d6
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/core/src/fmt/mod.rs:1120:17
   6:     0x7fc64dee44cf - std::io::Write::write_fmt::h2920683ffc23d04e
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/io/mod.rs:1846:15
   7:     0x7fc64deef9f4 - std::sys_common::backtrace::_print::h5625fa16158ef797
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fc64deef9f4 - std::sys_common::backtrace::print::h736502c57d395fe5
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fc64def273b - std::panicking::default_hook::{{closure}}::hd092ecfc821f695b
  10:     0x7fc64def2489 - std::panicking::default_hook::h7f251f2c2a8aa52c
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:292:9
  11:     0x7fc650e08d3c - std[578157ee06130f18]::panicking::update_hook::<alloc[1f5b0d5bc2928dda]::boxed::Box<rustc_driver_impl[58539505cbc2faf7]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7fc64def2ea0 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hc774e046b4082d87
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/alloc/src/boxed.rs:2030:9
  13:     0x7fc64def2ea0 - std::panicking::rust_panic_with_hook::h50c9145ee7057605
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:783:13
  14:     0x7fc64def2ba9 - std::panicking::begin_panic_handler::{{closure}}::h94d2e31aacd46455
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:649:13
  15:     0x7fc64def0126 - std::sys_common::backtrace::__rust_end_short_backtrace::h38d64ea497d2de47
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7fc64def2914 - rust_begin_unwind
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:645:5
  17:     0x7fc64df3d0e5 - core::panicking::panic_fmt::ha1515334750a7e83
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/core/src/panicking.rs:72:14
  18:     0x55dd347b259f - <rustfmt_nightly[b675ee0dacd4ea38]::parse::session::SilentEmitter as rustc_errors[2100e50554992a1d]::translation::Translate>::fallback_fluent_bundle
  19:     0x55dd3472dd61 - <rustfmt_nightly[b675ee0dacd4ea38]::parse::session::SilentOnIgnoredFilesEmitter as rustc_errors[2100e50554992a1d]::translation::Translate>::translate_message
  20:     0x7fc64f540730 - <rustc_errors[2100e50554992a1d]::DiagCtxt>::eagerly_translate::<indexmap[8900df93413b40de]::map::iter::Iter<alloc[1f5b0d5bc2928dda]::borrow::Cow<str>, rustc_errors[2100e50554992a1d]::diagnostic::DiagnosticArgValue>>
  21:     0x7fc65322f767 - <rustc_parse[99fcb0b11e913e76]::lexer::StringReader>::report_unknown_prefix
  22:     0x7fc652390db9 - <rustc_parse[99fcb0b11e913e76]::lexer::tokentrees::TokenTreesReader>::bump
  23:     0x7fc65238c87c - <rustc_parse[99fcb0b11e913e76]::lexer::tokentrees::TokenTreesReader>::parse_token_trees
  24:     0x7fc65238c66b - <rustc_parse[99fcb0b11e913e76]::lexer::tokentrees::TokenTreesReader>::parse_token_trees
  25:     0x7fc6529c817e - rustc_parse[99fcb0b11e913e76]::maybe_file_to_stream
  26:     0x7fc6529c7dd1 - rustc_parse[99fcb0b11e913e76]::maybe_source_file_to_parser
  27:     0x7fc6508a5d3f - rustc_parse[99fcb0b11e913e76]::maybe_new_parser_from_source_str
  28:     0x55dd347b1fc9 - <rustfmt_nightly[b675ee0dacd4ea38]::parse::parser::Parser>::parse_crate
  29:     0x55dd3476b772 - <rustfmt_nightly[b675ee0dacd4ea38]::Session<alloc[1f5b0d5bc2928dda]::vec::Vec<u8>>>::format_input_inner::{closure#0}
  30:     0x55dd347de798 - rustfmt_nightly[b675ee0dacd4ea38]::format_snippet
  31:     0x55dd347df442 - rustfmt_nightly[b675ee0dacd4ea38]::format_code_block
  32:     0x55dd34745aff - rustfmt_nightly[b675ee0dacd4ea38]::comment::rewrite_comment_inner
  33:     0x55dd34741a9b - rustfmt_nightly[b675ee0dacd4ea38]::comment::identify_comment
  34:     0x55dd347a2deb - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::process_comment
  35:     0x55dd347a1c76 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::format_missing_inner::<<rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::format_missing_indent::{closure#0}>
  36:     0x55dd347d74ae - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::walk_stmts
  37:     0x55dd347d7a49 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::walk_stmts
  38:     0x55dd347d0900 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_block
  39:     0x55dd347d2912 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_fn
  40:     0x55dd347d4db7 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_assoc_item
  41:     0x55dd347da2e4 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::with_context::<<rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_item::{closure#0}>
  42:     0x55dd347d3adf - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_item
  43:     0x55dd347b8086 - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::visit_items_with_reordering
  44:     0x55dd347d7c6b - <rustfmt_nightly[b675ee0dacd4ea38]::visitor::FmtVisitor>::format_separate_mod
  45:     0x55dd3465191e - <rustfmt_nightly[b675ee0dacd4ea38]::Session<std[578157ee06130f18]::io::stdio::Stdout>>::format_input_inner::{closure#0}
  46:     0x55dd34667001 - rustfmt[5f061a2893599691]::format_and_emit_report::<std[578157ee06130f18]::io::stdio::Stdout>
  47:     0x55dd3466549c - rustfmt[5f061a2893599691]::execute
  48:     0x55dd34660b6b - rustfmt[5f061a2893599691]::main
  49:     0x55dd3464b133 - std[578157ee06130f18]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  50:     0x55dd3464d3d9 - std[578157ee06130f18]::rt::lang_start::<()>::{closure#0}
  51:     0x7fc64ded5023 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hc7f8dd05f96b491f
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/core/src/ops/function.rs:284:13
  52:     0x7fc64ded5023 - std::panicking::try::do_call::h1bd43f02a24e6751
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:552:40
  53:     0x7fc64ded5023 - std::panicking::try::hf947459dccbaf55e
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:516:19
  54:     0x7fc64ded5023 - std::panic::catch_unwind::h2c7375dd4d29a430
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panic.rs:142:14
  55:     0x7fc64ded5023 - std::rt::lang_start_internal::{{closure}}::hbe7f5719fb8f5ec0
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/rt.rs:148:48
  56:     0x7fc64ded5023 - std::panicking::try::do_call::hb71a42f44bf8deaf
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:552:40
  57:     0x7fc64ded5023 - std::panicking::try::h2f4a644426d0df1f
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panicking.rs:516:19
  58:     0x7fc64ded5023 - std::panic::catch_unwind::h81097bad143deaf0
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/panic.rs:142:14
  59:     0x7fc64ded5023 - std::rt::lang_start_internal::h804ebd158eb3c43e
                               at /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/rt.rs:148:20
  60:     0x55dd346681c5 - main
  61:     0x7fc64daca083 - __libc_start_main
  62:     0x55dd3463a729 - <unknown>
  63:                0x0 - <unknown>

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

note: we would appreciate a bug report: https://github.com/rust-lang/rustfmt/issues/new?labels=bug

note: please attach the file at `/home/<user>/rust/reth/rustc-ice-2024-02-28T17_02_26-16763.txt` to your bug report

query stack during panic:
end of query stack

rustup show

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (directory override for '/home/<user>/rust/reth')
rustc 1.76.0 (07dca489a 2024-02-04)

rustc-ice-2024-02-28T10_59_13-18699.txt

@calebcartwright
Copy link
Member

Thank you for opening a report but please extract and post the relevant portions of the log inline within the issue so it's easier for everyone to consume and reference (e.g. so that others can more easily know if this is the same issue they encountered, and avoid opening duplicative tickets)

@RustyYato
Copy link

RustyYato commented Mar 2, 2024

edit: I did a more detailed comparison on the stack traces, and it's different, but maybe there's a similar issue? If not I can open a separate ticket for this

I ran into the same issue (same stack trace too as far as I can tell), and here's a MVP

macro_rules! bz {
    () => {
        match foo {
            _ => return bar;
        }
    };
}

There is no other context needed, but switching the ; after bar to a , doesn't ICE, so I suspect this may be due to failure to handle invalid syntax in a macro? If it's outside the macro then there's also no ICE.

my full backtrace
thread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:42:9:
silent emitter attempted to translate a diagnostic
stack backtrace:
   0:     0x7f4c1f644af6 - std::backtrace_rs::backtrace::libunwind::trace::hf298c77755f5b12e
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x7f4c1f644af6 - std::backtrace_rs::backtrace::trace_unsynchronized::h4da6a489ce2db74e
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7f4c1f644af6 - std::sys_common::backtrace::_print_fmt::h051beca4a6f5cb98
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x7f4c1f644af6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hcb86488900881a45
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7f4c1f695a7c - core::fmt::rt::Argument::fmt::haf43875fa4a971bb
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/fmt/rt.rs:142:9
   5:     0x7f4c1f695a7c - core::fmt::write::h44c7f32ae3be5535
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/fmt/mod.rs:1120:17
   6:     0x7f4c1f6394bf - std::io::Write::write_fmt::hc3fec0223f64c010
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/io/mod.rs:1846:15
   7:     0x7f4c1f6448a4 - std::sys_common::backtrace::_print::h7c03376d42fd745a
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7f4c1f6448a4 - std::sys_common::backtrace::print::h9ff10455f68b06c1
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7f4c1f6475eb - std::panicking::default_hook::{{closure}}::he4f9865f1b72b2d5
  10:     0x7f4c1f647339 - std::panicking::default_hook::h3d59f13a05d49fe6
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:292:9
  11:     0x7f4c1c2731ec - std[19d33715048712a6]::panicking::update_hook::<alloc[6fc58ab69ba746fe]::boxed::Box<rustc_driver_impl[4c01069949ad96dd]::install_ice_hook::{closure#0}>>::{closure#0}
  12:     0x7f4c1f647d50 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hf41c577e6ac4b0df
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/alloc/src/boxed.rs:2030:9
  13:     0x7f4c1f647d50 - std::panicking::rust_panic_with_hook::h70f59ab226ae2c5c
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:786:13
  14:     0x7f4c1f647a59 - std::panicking::begin_panic_handler::{{closure}}::h47fc7126fa960711
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:652:13
  15:     0x7f4c1f644fd6 - std::sys_common::backtrace::__rust_end_short_backtrace::h5b94f863278adeaf
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/sys_common/backtrace.rs:171:18
  16:     0x7f4c1f6477c4 - rust_begin_unwind
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:648:5
  17:     0x7f4c1f691f95 - core::panicking::panic_fmt::h96a33d9be4ce8c0f
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/panicking.rs:72:14
  18:     0x55e92f19f09f - <rustfmt_nightly[f97d436b76f8d936]::parse::session::SilentEmitter as rustc_errors[59443abce0bd3010]::translation::Translate>::fallback_fluent_bundle
  19:     0x55e92f11a9e1 - <rustfmt_nightly[f97d436b76f8d936]::parse::session::SilentOnIgnoredFilesEmitter as rustc_errors[59443abce0bd3010]::translation::Translate>::translate_message
  20:     0x7f4c1a95ded0 - <rustc_errors[59443abce0bd3010]::DiagCtxt>::eagerly_translate::<indexmap[a60d99cc2fb2d7c1]::map::iter::Iter<alloc[6fc58ab69ba746fe]::borrow::Cow<str>, rustc_errors[59443abce0bd3010]::diagnostic::DiagnosticArgValue>>
  21:     0x7f4c1a9748b3 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_arm_body_missing_braces::{closure#0}
  22:     0x7f4c1e26bee9 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_arm::{closure#0}
  23:     0x7f4c1e269778 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_match
  24:     0x7f4c1d79b4c5 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_dot_or_call
  25:     0x7f4c1d792bf5 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_prefix
  26:     0x7f4c1d790445 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_expr_assoc_with
  27:     0x7f4c1dc66924 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_stmt_without_recovery
  28:     0x7f4c1dc639de - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_block_tail
  29:     0x7f4c1dbced30 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_fn
  30:     0x7f4c1dfd43d7 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_item_kind
  31:     0x7f4c1d9bfa72 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_item_common
  32:     0x7f4c1d9bd4b2 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_mod
  33:     0x7f4c1e6dd1b1 - <rustc_parse[aabd1bb8679616a3]::parser::Parser>::parse_crate_mod
  34:     0x55e92f19eced - <rustfmt_nightly[f97d436b76f8d936]::parse::parser::Parser>::parse_crate
  35:     0x55e92f158304 - <rustfmt_nightly[f97d436b76f8d936]::Session<alloc[6fc58ab69ba746fe]::vec::Vec<u8>>>::format_input_inner::{closure#0}
  36:     0x55e92f1cacf8 - rustfmt_nightly[f97d436b76f8d936]::format_snippet
  37:     0x55e92f1cb9a2 - rustfmt_nightly[f97d436b76f8d936]::format_code_block
  38:     0x55e92f17fab2 - <rustfmt_nightly[f97d436b76f8d936]::lists::ListItems<core[a9f526eb09c6e7cd]::slice::iter::Iter<rustfmt_nightly[f97d436b76f8d936]::macros::MacroBranch>, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#1}, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#2}, rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def::{closure#3}> as core[a9f526eb09c6e7cd]::iter::traits::iterator::Iterator>::next::{closure#0}
  39:     0x55e92f18486a - rustfmt_nightly[f97d436b76f8d936]::macros::rewrite_macro_def
  40:     0x55e92f1bffb5 - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::visit_item
  41:     0x55e92f1a45d6 - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::visit_items_with_reordering
  42:     0x55e92f1c41bb - <rustfmt_nightly[f97d436b76f8d936]::visitor::FmtVisitor>::format_separate_mod
  43:     0x55e92f03e69e - <rustfmt_nightly[f97d436b76f8d936]::Session<std[19d33715048712a6]::io::stdio::Stdout>>::format_input_inner::{closure#0}
  44:     0x55e92f053d11 - rustfmt[c0e6de184f0cf264]::format_and_emit_report::<std[19d33715048712a6]::io::stdio::Stdout>
  45:     0x55e92f0521ac - rustfmt[c0e6de184f0cf264]::execute
  46:     0x55e92f04d87b - rustfmt[c0e6de184f0cf264]::main
  47:     0x55e92f037f63 - std[19d33715048712a6]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  48:     0x55e92f03a209 - std[19d33715048712a6]::rt::lang_start::<()>::{closure#0}
  49:     0x7f4c1f629f83 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h3abf3bc5c821344f
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/core/src/ops/function.rs:284:13
  50:     0x7f4c1f629f83 - std::panicking::try::do_call::hb3071568d9e061a2
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:555:40
  51:     0x7f4c1f629f83 - std::panicking::try::hb30aac26558f9f16
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:519:19
  52:     0x7f4c1f629f83 - std::panic::catch_unwind::h8a35c5dec3e3288e
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panic.rs:142:14
  53:     0x7f4c1f629f83 - std::rt::lang_start_internal::{{closure}}::h57f7d3bd6a9269a0
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/rt.rs:148:48
  54:     0x7f4c1f629f83 - std::panicking::try::do_call::h60080f38bbb7f07c
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:555:40
  55:     0x7f4c1f629f83 - std::panicking::try::h7552f24642a8f696
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panicking.rs:519:19
  56:     0x7f4c1f629f83 - std::panic::catch_unwind::h5d7d9eee0c94f993
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/panic.rs:142:14
  57:     0x7f4c1f629f83 - std::rt::lang_start_internal::h5e62a2694cfd5d4f
                               at /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/rt.rs:148:20
  58:     0x55e92f054ed5 - main
  59:     0x7f4c1916514a - __libc_start_call_main
  60:     0x7f4c1916520b - __libc_start_main_impl
  61:     0x55e92f0275d9 - <unknown>
  62:                0x0 - <unknown>

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

note: we would appreciate a bug report: https://github.com/rust-lang/rustfmt/issues/new?labels=bug

note: please attach the file at `/home/yato/playground/chess/rustc-ice-2024-03-02T22_22_06-150724.txt` to your bug report

query stack during panic:
end of query stack

@ytmimi
Copy link
Contributor

ytmimi commented Mar 4, 2024

@RustyYato I believe you're running into the same issue. Both backtraces start with:

thread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:42:9:
silent emitter attempted to translate a diagnostic

Which leads me to believe this is a duplicate of #6082

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants