Skip to content
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

regression: ICE on an unconfigured interpolated item in a macro invocation #34171

Closed
jseyfried opened this issue Jun 9, 2016 · 1 comment
Closed
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@jseyfried
Copy link
Contributor

For example, the following causes an ICE:

macro_rules! m {
    ($i:item) => {
        error! {
            $i //< This becomes an unconfigured interpolated item in the above macro invocation
        }
    }
}

fn main() {
    m!(#[cfg(any())] fn g() {}); //< in this expansion.
}
@jseyfried
Copy link
Contributor Author

This was caused by #33706.

@apasel422 apasel422 added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jun 9, 2016
bors added a commit that referenced this issue Jun 10, 2016
…r=alexcrichton

Fix ICE regression caused by configuring interpolated AST

Fixes #34171.
r? @nrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants