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.

Activity

  1. added a commit that references this issue on Dec 12, 2017
  2. added a commit that references this issue on Jul 10, 2024
  3. added a commit that references this issue on Jun 17, 2025
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