mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
Merge pull request #257 from oli-obk/cleanups
Export types and functions needed by priroda
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
PrimVal,
|
||||
PrimValKind,
|
||||
Value,
|
||||
Pointer,
|
||||
};
|
||||
|
||||
pub use const_eval::{
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user