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

ICE: Requires copy lang_item #19660

Closed
japaric opened this issue Dec 9, 2014 · 0 comments · Fixed by #21573
Closed

ICE: Requires copy lang_item #19660

japaric opened this issue Dec 9, 2014 · 0 comments · Fixed by #21573
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@japaric
Copy link
Member

japaric commented Dec 9, 2014

STR

#![feature(lang_items)]
#![no_std]

#[lang = "sized"]
trait Sized {}

#[start]
fn main(_: int, _: *const *const u8) -> int {
    0
}

Output

error: requires `copy` lang_item
error: internal compiler error: unexpected panic
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
task 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: ErrorReported', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libcore/result.rs:744

Version

rustc 0.13.0-dev (c56e59c72 2014-12-09 07:51:52 +0000)

This shouldn't ICE, it should be a compiler error, just like when you forget to add the Sized trait.

error: requires `sized` lang_item
error: aborting due to previous error
@flaper87 flaper87 added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 13, 2014
japaric pushed a commit to japaric/rust that referenced this issue Jan 24, 2015
flaper87 added a commit to flaper87/rust that referenced this issue Jan 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants