Skip to content

ICE in macro expansion #9110

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

Closed
dwrensha opened this issue Sep 11, 2013 · 4 comments
Closed

ICE in macro expansion #9110

dwrensha opened this issue Sep 11, 2013 · 4 comments

Comments

@dwrensha
Copy link
Contributor

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?

@jbclements
Copy link
Contributor

sigh... affirmative. Checking further.

@jbclements
Copy link
Contributor

yep. I see the problem. Working on a fix.

@jbclements
Copy link
Contributor

yep, got a fix. I'm going to try to sneak a few more fixes in here, while I'm at it.

jbclements added a commit to jbclements/rust that referenced this issue Sep 12, 2013
jbclements added a commit to jbclements/rust that referenced this issue Sep 12, 2013
bors added a commit that referenced this issue Sep 12, 2013
Fixes issue #9110, changes field_ty element to Name, adds test case, improves fail error message
@jbclements
Copy link
Contributor

fixed by #9135.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 18, 2022
…xFrednet

Remove trailing spaces

Closes rust-lang#9108
changelog: remove trailing spaces,  which are not allowed by the JSON standard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants