From 85cba42a7bb154361519aafc4a3ec5121eb6691c Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Mon, 19 Sep 2016 03:36:41 -0600 Subject: [PATCH] There will never be a PrimVal for fat pointers. Instead, there will be a `Value::ByValPair` variant for holding fat pointers (among other things) modelled after `OperandValue::Pair` in rustc's trans. --- src/interpreter/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index de05140377b3..0df25464bf0b 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -1006,7 +1006,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { Err(e) => return Err(e), } } else { - return Err(EvalError::Unimplemented(format!("unimplemented: primitive read of fat pointer type: {:?}", ty))); + bug!("primitive read of fat pointer type: {:?}", ty); } }