diff options
| author | Oliver Schneider <oli-obk@users.noreply.github.com> | 2017-07-19 11:40:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-19 11:40:43 +0200 |
| commit | 27c64479cd0e449634ef61bbf42dff42cfa1fc28 (patch) | |
| tree | 9f5404baef600112dc27e6d38cdb2432284348aa /src | |
| parent | 2d5c4196f17fc8d09ac2c434f2a49cdb07e7f4bc (diff) | |
| parent | d9d792ba03e89c36e9f505fa7ed7318eb6903c17 (diff) | |
| download | rust-27c64479cd0e449634ef61bbf42dff42cfa1fc28.tar.gz rust-27c64479cd0e449634ef61bbf42dff42cfa1fc28.zip | |
Merge pull request #257 from oli-obk/cleanups
Export types and functions needed by priroda
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 1 | ||||
| -rw-r--r-- | src/lvalue.rs | 2 |
2 files changed, 2 insertions, 1 deletions
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 @@ pub use value::{ 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 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { 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); } |
