From d9d792ba03e89c36e9f505fa7ed7318eb6903c17 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 19 Jul 2017 11:06:07 +0200 Subject: [PATCH] Export types and functions needed by priroda --- src/lib.rs | 1 + src/lvalue.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d87a9ab6535..424affa92a8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,6 +56,7 @@ PrimVal, PrimValKind, Value, + Pointer, }; pub use const_eval::{ diff --git a/src/lvalue.rs b/src/lvalue.rs index f673ff060ed..9fc01eb0384 100644 --- a/src/lvalue.rs +++ b/src/lvalue.rs @@ -193,7 +193,7 @@ pub(super) fn eval_and_read_lvalue(&mut self, lvalue: &mir::Lvalue<'tcx>) -> Eva self.read_lvalue(lvalue, ty) } - fn read_lvalue(&self, lvalue: Lvalue<'tcx>, ty: Ty<'tcx>) -> EvalResult<'tcx, Value> { + pub fn read_lvalue(&self, lvalue: Lvalue<'tcx>, ty: Ty<'tcx>) -> EvalResult<'tcx, Value> { if ty.is_never() { return Err(EvalError::Unreachable); }