This commit is contained in:
Oliver Schneider 2016-12-06 15:41:28 +01:00
parent b96202b3cd
commit c303ac001d
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46
2 changed files with 3 additions and 3 deletions

View File

@ -1798,7 +1798,7 @@ impl IntegerExt for layout::Integer {
}
pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: ty::FieldDef<'tcx>, substs: &'tcx Substs<'tcx>) -> Ty<'tcx> {
pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: &ty::FieldDef, substs: &'tcx Substs<'tcx>) -> Ty<'tcx> {
let substituted = &f.ty(tcx, substs);
tcx.normalize_associated_type(&substituted)
}

View File

@ -489,8 +489,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
fn field_ty(
&self,
param_substs: &Substs<'tcx>,
f: ty::FieldDef<'tcx>,
)-> ty::Ty<'tcx> {
f: &ty::FieldDef,
) -> ty::Ty<'tcx> {
self.tcx.normalize_associated_type(&f.ty(self.tcx, param_substs))
}
}