We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e1da5 commit 4a2d54dCopy full SHA for 4a2d54d
src/librustc_mir/interpret/place.rs
@@ -926,6 +926,10 @@ where
926
// most likey we *are* running `typeck` right now. Investigate whether we can bail out
927
// on `typeck_tables().has_errors` at all const eval entry points.
928
debug!("Size mismatch when transmuting!\nsrc: {:#?}\ndest: {:#?}", src, dest);
929
+ self.tcx.sess.delay_span_bug(
930
+ self.tcx.span,
931
+ "size-changing transmute, should have been caught by transmute checking",
932
+ );
933
throw_inval!(TransmuteSizeDiff(src.layout.ty, dest.layout.ty));
934
}
935
// Unsized copies rely on interpreting `src.meta` with `dest.layout`, we want
0 commit comments