Skip to content

ICE running cargo fmt in bevy repoย #6739

@TeamDman

Description

@TeamDman

rustc-ice-2025-12-06T03_03_24-4684.txt

My repo at the time: https://github.com/TeamDman/bevy/tree/rust-ice-2025-12-05 (permalink)

bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ cargo fmt

thread 'main' (35988) panicked at compiler\rustc_parse\src\parser\item.rs:400:32:
called `Result::unwrap()` on an `Err` value: Some(DiagInner { level: Error, messages: [(FluentIdentifier("parse_expected_identifier_found_keyword_str", None), NoStyle)], code: None, lint_id: None, span: MultiSpan 
{ primary_spans: [Span { lo: BytePos(139697), hi: BytePos(139701), ctxt: #0 }], span_labels: [(Span { lo: BytePos(139697), hi: BytePos(139701), ctxt: #0 }, Translated("expected identifier, found keyword"))] }, children: [], suggestions: Enabled([]), args: {"token": Str("Self")}, reserved_args: {}, sort_span: Span { lo: BytePos(139697), hi: BytePos(139701), ctxt: #0 }, is_lint: None, long_ty_path: None, emitted_at: DiagLocation { file: "compiler\\rustc_parse\\src\\parser\\diagnostics.rs", line: 381, col: 34 } })
bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly took 6s
โฏ rustc --version
rustc 1.94.0-nightly (1aa9bab4e 2025-12-05)
bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ cargo --version
cargo 1.94.0-nightly (2c283a9a5 2025-12-04)
bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ rustup --version
rustup 1.28.2 (e4f3ad6f8 2025-04-28)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.94.0-nightly (1aa9bab4e 2025-12-05)`
bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ pwd

Path
----
D:\bevywinicon

bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ git status
On branch rust-ice-2025-12-05
Your branch is up to date with 'mine/rust-ice-2025-12-05'.

nothing to commit, working tree clean
bevywinicon on ๎‚  rust-ice-2025-12-05 [$] is ๐Ÿ“ฆ v0.18.0-dev via ๐Ÿฆ€ v1.94.0-nightly 
โฏ git log   
commit ee86d092937e6f0f678c4773a309a2f0bd57f83f (HEAD -> rust-ice-2025-12-05, mine/rust-ice-2025-12-05, feat/window-icon-v3)
Author: TeamDman <TeamDman9201@gmail.com>
Date:   Fri Dec 5 22:06:46 2025 -0500

    Fix formatting

Observed this after doing rustup update after experiencing #5975 lol

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEI-ICEIssue: Internal Compiler Error (ICE) reported by rustfmt

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions