Skip to content

trans.rs assertion error compiling code #1400

Description

@erickt

I've reduced this down to about bare minimum:

use std;

native mod foo {
    fn bar(x: int);
}

obj new(i: int) {
    fn f() {
        str::as_buf("", {|_x| foo::bar(i) });
    }
}

Errors out with:

rust: upcall fail 'Assertion cx.fcx.llobjfields.contains_key(did.node) failed', ../src/comp/middle/trans.rs:2679
rust: domain main @0x102029600 root task failed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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