Skip to content

ICE: librustc_resolve/lib.rs:2853: unexpected definition for an identifier in pattern: Mod(DefId(10/0:0)) #53333

Closed

Description

@eddyb

Reported by @Manishearth in #52923 (comment):

   Compiling clippy_lints v0.0.212 (file:///home/manishearth/mozilla/Wall/rust-clippy/clippy_lints)
thread 'main' panicked at 'librustc_resolve/lib.rs:2853: unexpected definition for an identifier in pattern: Mod(DefId(10/0:0))', librustc/util/bug.rs:47:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: internal compiler error: unexpected panic

Minimal reproduction (with --edition=2018):

fn main() {
    use std;
    let std = "std";
    println!("{}", std);
}

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    on Aug 14, 2018
  2. added a commit that references this issue on Aug 14, 2018
    d67ba90
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

    I-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