We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d88631 commit ac6b708Copy full SHA for ac6b708
compiler/rustc_const_eval/src/interpret/place.rs
@@ -906,10 +906,6 @@ where
906
}
907
// We still require the sizes to match.
908
if src.layout.size != dest.layout.size {
909
- // FIXME: This should be an assert instead of an error, but if we transmute within an
910
- // array length computation, `typeck` may not have yet been run and errored out. In fact
911
- // most likely we *are* running `typeck` right now. Investigate whether we can bail out
912
- // on `typeck_results().has_errors` at all const eval entry points.
913
span_bug!(
914
self.cur_span(),
915
"size-changing transmute, should have been caught by transmute checking: {:#?}\ndest: {:#?}",
0 commit comments