rustup
This commit is contained in:
parent
b96202b3cd
commit
c076321a94
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue