priroda required functions
This commit is contained in:
parent
8084d60f54
commit
927844ab24
1 changed files with 2 additions and 2 deletions
|
|
@ -688,7 +688,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
Ok((offset, ty))
|
||||
}
|
||||
|
||||
fn get_field_ty(&self, ty: Ty<'tcx>, field_index: usize) -> EvalResult<'tcx, Ty<'tcx>> {
|
||||
pub fn get_field_ty(&self, ty: Ty<'tcx>, field_index: usize) -> EvalResult<'tcx, Ty<'tcx>> {
|
||||
match ty.sty {
|
||||
ty::TyAdt(adt_def, substs) => {
|
||||
Ok(adt_def.struct_variant().fields[field_index].ty(self.tcx, substs))
|
||||
|
|
@ -1011,7 +1011,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub(super) fn ty_to_primval_kind(&self, ty: Ty<'tcx>) -> EvalResult<'tcx, PrimValKind> {
|
||||
pub fn ty_to_primval_kind(&self, ty: Ty<'tcx>) -> EvalResult<'tcx, PrimValKind> {
|
||||
use syntax::ast::FloatTy;
|
||||
|
||||
let kind = match ty.sty {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue