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 upICE: the type `u8` has an unknown layout #36036
Comments
This comment has been minimized.
This comment has been minimized.
|
I'm also getting this ICE. Here's a more minimal example:
And here's the error:
|
sfackler
added
the
I-ICE
label
Aug 27, 2016
This comment has been minimized.
This comment has been minimized.
|
This is a regression from stable to beta. |
This comment has been minimized.
This comment has been minimized.
|
Introduced in Slightly smaller example: trait Context {
type Container: ?Sized;
}
impl Context for u16 {
type Container = u8;
}
struct Wrapper<C: Context> {
container: *const C::Container
}
fn foobar(_: Wrapper<u16>) {}
fn main() {} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Seems like pointers need to be normalized specially (as we don't recurse through them). |
nikomatsakis
assigned
eddyb
Sep 1, 2016
This comment has been minimized.
This comment has been minimized.
|
triage: P-high Assigning to @eddyb to start since he seems to have a clue what the problem is. |
rust-highfive
added
P-high
and removed
I-nominated
labels
Sep 1, 2016
This comment has been minimized.
This comment has been minimized.
|
assigning to self to try to lift load from @eddyb |
pnkfelix
assigned
pnkfelix
and unassigned
eddyb
Sep 1, 2016
This comment has been minimized.
This comment has been minimized.
|
I have a fix in the works, will post PR soon. |
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Sep 5, 2016
bors
added a commit
that referenced
this issue
Sep 5, 2016
bors
closed this
in
#36281
Sep 5, 2016
This comment has been minimized.
This comment has been minimized.
|
reopening since this is still a regression on beta |
pnkfelix
reopened this
Sep 8, 2016
jakllsch
added a commit
to jakllsch/rust
that referenced
this issue
Sep 8, 2016
brson
added a commit
to brson/rust
that referenced
this issue
Sep 16, 2016
This comment has been minimized.
This comment has been minimized.
|
This has been backported in #36538 so this issue may be closed. |
eddyb
closed this
Sep 17, 2016
pmatos
pushed a commit
to LinkiTools/rust
that referenced
this issue
Sep 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sinkuu commentedAug 27, 2016
•
edited
(See #36036 (comment) for shorter example)
I tried this code:
with
tokio-coreat b9395808bea624e6b64bcafbf6cc05cabdaca6cc,tokio-protoat 9b694ed5d92a9614058674032a37836300727314tokio-serviceat 821739abb9a9c138d84ea1a81c90809af7530e08futuresat ecbca61c8123eff5b939933d9fe0633b522be52bI expected to see this happen: compilation success
Instead, this happened: crashed nightly and beta compiler
Meta
rustc --version --verbose: