Skip to content

Compiler panic when doing something wrong with a module #21449

Closed
@ghost

Description

A compiler panic occurs when trying to compile this snippet of code:

mod MyMod{
}

fn main() {
    let myVar = MyMod{T:0u64};
}

note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with RUST_BACKTRACE=1 for a backtrace
thread 'rustc' panicked at 'No def'n found for DefId { krate: 0u32, node: 4u32 } in tcx.tcache', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/ty.rs:5008

rustc 1.0.0-nightly (f4f10db 2015-01-17 20:31:08 +0000)
binary: rustc
commit-hash: f4f10db
commit-date: 2015-01-17 20:31:08 +0000
host: x86_64-unknown-linux-gnu [Linux Mint Debian Edition]
release: 1.0.0-nightly

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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