We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba5160 commit b4f78c0Copy full SHA for b4f78c0
src/librustc/ty/sty.rs
@@ -1975,9 +1975,10 @@ impl<'tcx> Const<'tcx> {
1975
ty: ParamEnvAnd<'tcx, Ty<'tcx>>,
1976
) -> &'tcx Self {
1977
let ty = tcx.lift_to_global(&ty).unwrap();
1978
- let layout = tcx.layout_of(ty).unwrap_or_else(|_| {
+ let layout = tcx.layout_of(ty).unwrap_or_else(|e| {
1979
// FIXME: add delay_span_bug call, we can only get here if there are errors
1980
// we produce a weird dummy layout with somewhat sane values
1981
+ error!("failed to compute layout of {:?}: {:?}", ty, e);
1982
let mut layout = tcx.layout_of(ParamEnv::reveal_all().and(tcx.types.u128)).unwrap();
1983
layout.ty = ty.value;
1984
layout
0 commit comments