Skip to content

internal error "imports and matches don't agree" on multiple glob-import when at least one source is from a different crate #482

Description

@paulstansifer

For example:
use std;
import std::vec::;
import alternate_supplier::
;

mod alternate_supplier {
      fn swap() {}
}

fn main() { swap() }

The internal error occurs when trying to generate an error message indicating that swap is doubly-imported. The problem is that, as std::vec::swap is from an external crate, it wasn't put in ast_map in resolve.rs.

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