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 up`size_of` of associated type ICEs #43357
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, the fact cc @arielb1 Was the layout code always going to ICE like that? Or did it get changed? Transmute checking uses it and that shouldn't ever ICE. |
This comment has been minimized.
This comment has been minimized.
|
The snippet below gives the right error, so likely I used the wrong way to get the layout. fn f<T: ::std::ops::Neg>(x: T) -> T::Output {
::std::mem::transmute(x)
} |
qnighy
referenced this issue
Jul 21, 2017
Closed
rustc panic with error "src/librustc/infer/mod.rs:573: Encountered errors `[FulfillmentError(Obligation(predicate=Binder(TraitPredicate(<T as data_type::DataType>)),depth=0),Unimplemented)]` resolving bounds after type-checking" #43377
sfackler
added
the
I-ICE
label
Jul 21, 2017
Mark-Simulacrum
added
the
C-bug
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
Duplicate of #43394? |
This comment has been minimized.
This comment has been minimized.
Mark-Simulacrum
marked this as
a duplicate of
#43452
Jul 24, 2017
Mark-Simulacrum
referenced this issue
Jul 24, 2017
Closed
Compiler error while building matrixmultiply with rust 1.20 nightly #43452
This comment has been minimized.
This comment has been minimized.
|
The problem is that rust/src/librustc_const_eval/eval.rs Line 345 in 5669c99 let layout_of = |ty: Ty<'tcx>| {
ty.layout(tcx, ty::ParamEnv::empty(traits::Reveal::All))
.map_err(|err| {
ConstEvalErr { span: e.span, kind: LayoutError(err) }
})
};It should either use the "correct" param env (so that the types will still be WF) or it should bail out when it sees a generic type. |
This comment has been minimized.
This comment has been minimized.
|
Ah, I see, I'll try to plumb the |
bluss
referenced this issue
Jul 27, 2017
Closed
ICE's on nightly rust: resolving bounds after type-checking #18
eddyb
added
the
regression-from-stable-to-nightly
label
Jul 27, 2017
eddyb
marked this as
a duplicate of
#43474
Jul 27, 2017
eddyb
marked this as
a duplicate of
#43476
Jul 27, 2017
eddyb
referenced this issue
Jul 27, 2017
Merged
rustc_const_eval: always require Substs and a ParamEnv. #43505
Mark-Simulacrum
marked this as
a duplicate of
#43394
Jul 27, 2017
Mark-Simulacrum
referenced this issue
Jul 27, 2017
Closed
cargo-profiler fails to compile on nightly #43394
This comment has been minimized.
This comment has been minimized.
fluffypomeranian
commented
Jul 27, 2017
•
|
+1 my rust cargo bench error using nightly build
|
kennytm commentedJul 20, 2017
•
edited
Originally reported in #43355, which should be a different bug from the main report.
On nightly, crashes with:
Does not crash with
1.20.0-beta.1 (e93aa3aa8 2017-07-18).cc @eddyb #42859, which is relevant and is inside the commit range e93aa3a...582af6e.