Skip to content

Commit 27c6447

Browse files
authored
Merge pull request #257 from oli-obk/cleanups
Export types and functions needed by priroda
2 parents 2d5c419 + d9d792b commit 27c6447

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub use value::{
5656
PrimVal,
5757
PrimValKind,
5858
Value,
59+
Pointer,
5960
};
6061

6162
pub use const_eval::{

src/lvalue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
193193
self.read_lvalue(lvalue, ty)
194194
}
195195

196-
fn read_lvalue(&self, lvalue: Lvalue<'tcx>, ty: Ty<'tcx>) -> EvalResult<'tcx, Value> {
196+
pub fn read_lvalue(&self, lvalue: Lvalue<'tcx>, ty: Ty<'tcx>) -> EvalResult<'tcx, Value> {
197197
if ty.is_never() {
198198
return Err(EvalError::Unreachable);
199199
}

0 commit comments

Comments
 (0)