]> git.lizzy.rs Git - rust.git/blobdiff - src/interpreter/mod.rs
note that not all literal items are function pointers
[rust.git] / src / interpreter / mod.rs
index a7dedc9ddc65b4075c5beab1e1a1e4eb436e84ab..5592783d86329cb6abbd944f28e723199837d018 100644 (file)
@@ -982,7 +982,7 @@ fn eval_operand(&mut self, op: &mir::Operand<'tcx>) -> EvalResult<Pointer> {
                 use rustc::mir::repr::Literal::*;
                 match *literal {
                     Value { ref value } => Ok(self.const_to_ptr(value)?),
-                    Item { .. } => Err(EvalError::Unimplemented(format!("function pointers are unimplemented"))),
+                    Item { .. } => Err(EvalError::Unimplemented(format!("literal items (e.g. mentions of function items) are unimplemented"))),
                     Promoted { index } => {
                         // TODO(solson): Mark constants and statics as read-only and cache their
                         // values.