Skip to content

Existing command cargo +nightly fmt --all now errors #6143

@BrennerSpear

Description

@BrennerSpear

I've been running this command (cargo +nightly fmt --all) all the time (daily+) and today it started spitting out this error

thread 'main' panicked at src/tools/rustfmt/src/parse/session.rs:40:9:
silent emitter attempted to translate a diagnostic
stack backtrace:
   0:        0x101418e38 - std::backtrace::Backtrace::create::h9de85ebb32138d6b
   1:        0x10a9070ac - std[674217ddce63c36a]::panicking::update_hook::<alloc[956e856237606d68]::boxed::Box<rustc_driver_impl[567e6f422504a648]::install_ice_hook::{closure#0}>>::{closure#0}
   2:        0x101431d30 - std::panicking::rust_panic_with_hook::h4add6ff44d6506d6
   3:        0x1014316c4 - std::panicking::begin_panic_handler::{{closure}}::h6b17d83e3f43c72e
   4:        0x10142f018 - std::sys_common::backtrace::__rust_end_short_backtrace::he502a3b814db59f8
   5:        0x101431468 - _rust_begin_unwind
   6:        0x10148c55c - core::panicking::panic_fmt::hebad26ee410495e7
   7:        0x1002ea9ec - <rustfmt_nightly[cede0b9cb3610b83]::parse::session::SilentEmitter as rustc_errors[6b29da6a094f065f]::translation::Translate>::fallback_fluent_bundle
   8:        0x1002df8b4 - <rustfmt_nightly[cede0b9cb3610b83]::parse::session::SilentOnIgnoredFilesEmitter as rustc_errors[6b29da6a094f065f]::translation::Translate>::translate_message
   9:        0x10b8d7ae8 - <rustc_errors[6b29da6a094f065f]::DiagCtxt>::eagerly_translate::<indexmap[537bf075a3799144]::map::iter::Iter<alloc[956e856237606d68]::borrow::Cow<str>, rustc_errors[6b29da6a094f065f]::diagnostic::DiagArgValue>>
  10:        0x10b8a01e4 - <rustc_parse[ae708f67aa0f120e]::errors::QuestionMarkInType as rustc_errors[6b29da6a094f065f]::diagnostic::IntoDiagnostic>::into_diagnostic
  11:        0x10b84a3d4 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_ty_common
  12:        0x10b8419dc - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_generic_arg
  13:        0x10b8400d4 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_angle_args
  14:        0x10b7f02b4 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_dot_suffix_expr
  15:        0x10b7ed484 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_expr_dot_or_call_with_
  16:        0x10b843950 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_stmt_path_start
  17:        0x10b8425c8 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_stmt_without_recovery
  18:        0x10b8476e8 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_full_stmt
  19:        0x10b846ec0 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_block_tail
  20:        0x10b846cdc - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_block_common
  21:        0x10b827ec8 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_fn
  22:        0x10b812a10 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_item_kind
  23:        0x10b811a20 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_item_common
  24:        0x10b811294 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_item_
  25:        0x10b810bcc - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_mod
  26:        0x10b8107d8 - <rustc_parse[ae708f67aa0f120e]::parser::Parser>::parse_crate_mod
  27:        0x1002ccefc - <rustfmt_nightly[cede0b9cb3610b83]::parse::parser::Parser>::parse_crate
  28:        0x10028697c - rustfmt_nightly[cede0b9cb3610b83]::formatting::format_project::<rustfmt_nightly[cede0b9cb3610b83]::Session<alloc[956e856237606d68]::vec::Vec<u8>>>
  29:        0x100203e40 - <scoped_tls[4194b02178bede36]::ScopedKey<rustc_span[a494ab06a066a8f1]::SessionGlobals>>::with::<<rustfmt_nightly[cede0b9cb3610b83]::Session<alloc[956e856237606d68]::vec::Vec<u8>>>::format_input_inner::{closure#0}, core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>>
  30:        0x10027a228 - rustc_span[a494ab06a066a8f1]::create_session_if_not_set_then::<core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>, <rustfmt_nightly[cede0b9cb3610b83]::Session<alloc[956e856237606d68]::vec::Vec<u8>>>::format_input_inner::{closure#0}>
  31:        0x10027a628 - std[674217ddce63c36a]::panicking::try::<core[dcb8979633521b01]::option::Option<rustfmt_nightly[cede0b9cb3610b83]::FormattedSnippet>, rustfmt_nightly[cede0b9cb3610b83]::format_snippet::{closure#0}>
  32:        0x1002cd8ac - rustfmt_nightly[cede0b9cb3610b83]::format_snippet
  33:        0x1002cdca4 - rustfmt_nightly[cede0b9cb3610b83]::format_code_block
  34:        0x100243450 - <rustfmt_nightly[cede0b9cb3610b83]::macros::MacroBranch>::rewrite
  35:        0x10030b65c - <rustfmt_nightly[cede0b9cb3610b83]::lists::ListItems<core[dcb8979633521b01]::slice::iter::Iter<rustfmt_nightly[cede0b9cb3610b83]::macros::MacroBranch>, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#1}, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#2}, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#3}> as core[dcb8979633521b01]::iter::traits::iterator::Iterator>::next
  36:        0x1001f984c - <alloc[956e856237606d68]::vec::Vec<rustfmt_nightly[cede0b9cb3610b83]::lists::ListItem> as alloc[956e856237606d68]::vec::spec_from_iter::SpecFromIter<rustfmt_nightly[cede0b9cb3610b83]::lists::ListItem, rustfmt_nightly[cede0b9cb3610b83]::lists::ListItems<core[dcb8979633521b01]::slice::iter::Iter<rustfmt_nightly[cede0b9cb3610b83]::macros::MacroBranch>, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#1}, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#2}, rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def::{closure#3}>>>::from_iter
  37:        0x10023da64 - rustfmt_nightly[cede0b9cb3610b83]::macros::rewrite_macro_def
  38:        0x100275398 - <rustfmt_nightly[cede0b9cb3610b83]::visitor::FmtVisitor>::visit_item
  39:        0x10026f328 - <rustfmt_nightly[cede0b9cb3610b83]::visitor::FmtVisitor>::visit_items_with_reordering
  40:        0x100278b88 - <rustfmt_nightly[cede0b9cb3610b83]::visitor::FmtVisitor>::format_separate_mod
  41:        0x100177f10 - rustfmt_nightly[cede0b9cb3610b83]::formatting::format_project::<rustfmt_nightly[cede0b9cb3610b83]::Session<std[674217ddce63c36a]::io::stdio::Stdout>>
  42:        0x1001801c4 - <scoped_tls[4194b02178bede36]::ScopedKey<rustc_span[a494ab06a066a8f1]::SessionGlobals>>::with::<<rustfmt_nightly[cede0b9cb3610b83]::Session<std[674217ddce63c36a]::io::stdio::Stdout>>::format_input_inner::{closure#0}, core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>>
  43:        0x10017e3d4 - <scoped_tls[4194b02178bede36]::ScopedKey<rustc_span[a494ab06a066a8f1]::SessionGlobals>>::set::<rustc_span[a494ab06a066a8f1]::create_session_if_not_set_then<core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>, <rustfmt_nightly[cede0b9cb3610b83]::Session<std[674217ddce63c36a]::io::stdio::Stdout>>::format_input_inner::{closure#0}>::{closure#0}, core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>>
  44:        0x10017503c - rustc_span[a494ab06a066a8f1]::create_session_if_not_set_then::<core[dcb8979633521b01]::result::Result<rustfmt_nightly[cede0b9cb3610b83]::FormatReport, rustfmt_nightly[cede0b9cb3610b83]::ErrorKind>, <rustfmt_nightly[cede0b9cb3610b83]::Session<std[674217ddce63c36a]::io::stdio::Stdout>>::format_input_inner::{closure#0}>
  45:        0x100167fdc - rustfmt[4f3df6da2854f560]::format_and_emit_report::<std[674217ddce63c36a]::io::stdio::Stdout>
  46:        0x100171124 - <rustfmt_nightly[cede0b9cb3610b83]::Session<std[674217ddce63c36a]::io::stdio::Stdout>>::override_config::<rustfmt[4f3df6da2854f560]::format::{closure#0}, ()>
  47:        0x10016711c - rustfmt[4f3df6da2854f560]::execute
  48:        0x100165618 - rustfmt[4f3df6da2854f560]::main
  49:        0x100175c3c - std[674217ddce63c36a]::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>
  50:        0x100179d10 - std[674217ddce63c36a]::rt::lang_start::<()>::{closure#0}
  51:        0x1014178e4 - std::rt::lang_start_internal::h6ffcd029d9cf317e
  52:        0x100168aac - _main


rustc version: 1.78.0-nightly (d18480b84 2024-03-04)
platform: aarch64-apple-darwin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions