Merge pull request #257 from oli-obk/cleanups
Export types and functions needed by priroda
This commit is contained in:
commit
27c64479cd
2 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ pub use value::{
|
|||
PrimVal,
|
||||
PrimValKind,
|
||||
Value,
|
||||
Pointer,
|
||||
};
|
||||
|
||||
pub use const_eval::{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue