Skip to content

ICE formatting macro #5928

Closed
Closed
@SamRodri

Description

@SamRodri

Formatting this reduced code:

macro_rules! foo {
    ($self:ident) => {
        foo!($self.Bar::X)
    };
}

Causes an unknown panic in stable and nightly:

note: rustc 1.72.1 (d5c2e9c34 2023-09-13) running on x86_64-pc-windows-msvc

query stack during panic:
end of query stack
note: rustc 1.74.0-nightly (5ae769f06 2023-09-26) running on x86_64-pc-windows-msvc

query stack during panic:
end of query stack

The nightly ICE file can't be written in Windows (os error 123, rust-lang/rust#115180), in Linux it is is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions