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