Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler panic when doing something wrong with a module #21449

Closed
ghost opened this issue Jan 21, 2015 · 2 comments
Closed

Compiler panic when doing something wrong with a module #21449

ghost opened this issue Jan 21, 2015 · 2 comments
Labels
A-resolve Area: Name resolution E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ghost
Copy link

ghost commented Jan 21, 2015

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

@Aatch Aatch added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-resolve Area: Name resolution labels Jan 21, 2015
@tamird
Copy link
Contributor

tamird commented Apr 21, 2015

Triage: still ICEs.

@pmarcelll
Copy link
Contributor

This gives a proper error message on nightly (I guess #17001 is related).

@alexcrichton alexcrichton added the E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. label Sep 1, 2015
bors added a commit that referenced this issue Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-resolve Area: Name resolution E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants