From aa791a4085dce76a6b9100e12a894a47745c3b2a Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Thu, 17 Mar 2016 01:11:06 -0600 Subject: [PATCH] Add fixmes to horrible casting code. --- src/interpreter.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interpreter.rs b/src/interpreter.rs index de49d6e1564..1ce055b494a 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -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); }