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 upCompiler crashes when trying to use std::ops::Sized #37534
Comments
bluss
added
the
I-ICE
label
Nov 2, 2016
This comment has been minimized.
This comment has been minimized.
|
Also occures on nightly
|
This comment has been minimized.
This comment has been minimized.
|
Technically, this is a regression from 1.7 to 1.8. |
TimNN
added
T-compiler
regression-from-stable-to-stable
labels
Nov 2, 2016
This comment has been minimized.
This comment has been minimized.
|
Works for any trait name, see https://is.gd/15w6hz:
|
This comment has been minimized.
This comment has been minimized.
|
This is due to error recovery, i.e. the compiler not stopping on errors (name resolution in this case). |
eddyb
added
the
E-mentor
label
Nov 3, 2016
Mark-Simulacrum
referenced this issue
Nov 3, 2016
Merged
Fix ICE when querying DefId on Def::Err. #37564
jonathandturner
added a commit
to jonathandturner/rust
that referenced
this issue
Nov 4, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 4, 2016
jonathandturner
added a commit
to jonathandturner/rust
that referenced
this issue
Nov 5, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Nov 5, 2016
bors
closed this
in
#37564
Nov 6, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
torkleyy commentedNov 2, 2016
Minimal example
I tried to build a struct for a generic type T which does not have to be sized.
Accidentally, I
usedstd::ops::Sizedinstead ofstd::marker::Sizedso the compilercrashed.
Just doing
use std::ops::Sized;without actually using it in the code does not crash the compiler.Build platform
Operating system:
rustc --version --verbose:
Compiler output
Output:
Backtrace: