Remove outdated comment
This commit is contained in:
parent
0d88631059
commit
ac6b7083c8
1 changed files with 0 additions and 4 deletions
|
@ -906,10 +906,6 @@ where
|
||||||
}
|
}
|
||||||
// We still require the sizes to match.
|
// We still require the sizes to match.
|
||||||
if src.layout.size != dest.layout.size {
|
if src.layout.size != dest.layout.size {
|
||||||
// FIXME: This should be an assert instead of an error, but if we transmute within an
|
|
||||||
// array length computation, `typeck` may not have yet been run and errored out. In fact
|
|
||||||
// most likely we *are* running `typeck` right now. Investigate whether we can bail out
|
|
||||||
// on `typeck_results().has_errors` at all const eval entry points.
|
|
||||||
span_bug!(
|
span_bug!(
|
||||||
self.cur_span(),
|
self.cur_span(),
|
||||||
"size-changing transmute, should have been caught by transmute checking: {:#?}\ndest: {:#?}",
|
"size-changing transmute, should have been caught by transmute checking: {:#?}\ndest: {:#?}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue