Skip to content

ICE in macro expansion #9110

Closed
Closed
@dwrensha

Description

@dwrensha

The following program causes the rustc error: "error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug"

macro_rules! silly_macro(
    () => (
        pub mod Qux {
            pub struct Foo { x : u8 }
            pub fn bar(_foo : Foo) {}
        }
    );
)

silly_macro!()

fn main() {}

Perhaps related to recent commits by @jbclements?

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