Skip to content

Commit ac6b708

Browse files
committed
Remove outdated comment
1 parent 0d88631 commit ac6b708

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+0
-4
lines changed

compiler/rustc_const_eval/src/interpret/place.rs

-4
Original file line numberDiff line numberDiff line change
@@ -906,10 +906,6 @@ where
906906
}
907907
// We still require the sizes to match.
908908
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.
913909
span_bug!(
914910
self.cur_span(),
915911
"size-changing transmute, should have been caught by transmute checking: {:#?}\ndest: {:#?}",

0 commit comments

Comments
 (0)