]> git.lizzy.rs Git - rust.git/commitdiff
Add fixmes to horrible casting code.
authorScott Olson <scott@solson.me>
Thu, 17 Mar 2016 07:11:06 +0000 (01:11 -0600)
committerScott Olson <scott@solson.me>
Thu, 17 Mar 2016 07:11:06 +0000 (01:11 -0600)
src/interpreter.rs

index de49d6e1564a4a914fbae0178bdf718ec3cd3561..1ce055b494ac92a1f51d444cd909ea1a65ae7d50 100644 (file)
@@ -433,8 +433,10 @@ fn pointee_type<'tcx>(ptr_ty: ty::Ty<'tcx>) -> Option<ty::Ty<'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);
                         }