Skip to content

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

Closed
@jld

Description

@jld

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions