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

unique pointers + macros → rust: task failed at 'assertion failed: !bcx.ccx().maps.moves_map.contains(&arg_expr.id)' #6000

Closed
jld opened this issue Apr 22, 2013 · 4 comments
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@jld
Copy link
Contributor

jld commented Apr 22, 2013

Minimized test case:

macro_rules! thing {
    ($e:expr) => { thing!($e, $e) };
    ($e0:expr, $e1:expr) => {{
        let e = $e0;
        assert!(e == $e1);
    }}
}

pub fn main() {
    thing!(~17);
}

Note that substituting thing!(~17, ~17) works, and similarly for let e = $e0; let ee = $e1; assert!(e == ee). Gist of the ::rt::backtrace: https://gist.github.com/jld/5435823

@metajack
Copy link
Contributor

This still happens. Nominating production ready.

@graydon
Copy link
Contributor

graydon commented Aug 22, 2013

accepted for production-ready milestone

@sanxiyn
Copy link
Member

sanxiyn commented Dec 16, 2013

No more ICE. Probably fixed by #9088.

@alexcrichton
Copy link
Member

Closing as fixed by #9088 (which has many tests already checked in)

flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants