1
Fork 0

Add fixmes to horrible casting code.

This commit is contained in:
Scott Olson 2016-03-17 01:11:06 -06:00
parent d3b47c418f
commit aa791a4085

View file

@ -433,8 +433,10 @@ impl<'a, 'tcx: 'a> Interpreter<'a, 'tcx> {
Misc => {
if pointee_type(src_ty).is_some() && pointee_type(dest_ty).is_some() {
// FIXME(tsion): Wrong for fat pointers.
self.memory.copy(src, dest, 8)
} else {
// FIXME(tsion): Wrong for almost everything.
self.memory.copy(src, dest, 8)
// panic!("can't handle cast: {:?}", rvalue);
}