Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptrait lang item on a struct #20875
Comments
This comment has been minimized.
This comment has been minimized.
|
Here is a test case: #![no_std]
#![feature(lang_items)]
#[lang="sized"]
struct Foo; // can be omitted
struct Bar<T> {field: T}
fn main() {}The ICE happens at least when the |
flaper87
added
the
I-ICE
label
Jan 10, 2015
This comment has been minimized.
This comment has been minimized.
zhangpf
commented
Jan 20, 2015
|
http://is.gd/SpIRJe |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
(actually maybe this does not really need @nikomatsakis 's attention; I suspect we could just make the code check a bit more carefully that the |
This comment has been minimized.
This comment has been minimized.
|
Triage bump: still ICEs. #![feature(no_std,lang_items)]
#![no_std]
#[lang="sized"]
struct Bar<T> {field: T}
fn main() {} |
This comment has been minimized.
This comment has been minimized.
|
I could not compile the latest example and I'm not sure what is causing it. Removing the |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton the recent changes to |
This comment has been minimized.
This comment has been minimized.
|
Use |
This comment has been minimized.
This comment has been minimized.
|
Is this the same ICE? #![feature(no_core,lang_items)]
#![no_core]
#[lang="sized"]
struct Bar<T> {field: T}
fn main() {}The error message is different than the OP's error.
|
This comment has been minimized.
This comment has been minimized.
|
@bltavares |
This comment has been minimized.
This comment has been minimized.
|
@arielb1 Cool. I will add it to steveklabnik/glacier then. |
bltavares
added a commit
to bltavares/glacier
that referenced
this issue
Oct 25, 2015
This comment has been minimized.
This comment has been minimized.
|
It is unlikely to be fixed. |
brson
added
P-low
T-compiler
labels
Mar 23, 2017
Mark-Simulacrum
changed the title
rustc panicked
trait lang item on a struct
Jun 13, 2017
This comment has been minimized.
This comment has been minimized.
|
This ICE is effectively caused by #9307, so I'm going to close in favor of that. |
apreiml commentedJan 10, 2015
Version (nightly from : http://ppa.launchpad.net/hansjorg/rust/ubuntu)
rustc 1.0.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev
I've tried to compile: https://github.com/apreiml/rustboot