Skip to content

Cannot call tag value constructors for tag type imported from another crate. #150

Closed
@froystig

Description

@froystig

Suppose foo.rc is compiled as a shared (library) crate, and looks like:

mod bar;

and that bar.rs looks like:

type baz = tag(a(), b(), c());

When we compile a file that looks like:

use foo;
import foo.bar;

fn main() {
    let bar.baz x = bar.a();   // alternatively bar.b() or bar.c()
}

we are told

Fatal error: exception Failure("internal_check_ext_lval: ident a not found in mod item")

in response to our use of bar.a().

Fix whatever is wrong with tags imported from an external crate.

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