Skip to content

Commit c303ac0

Browse files
committed
rustup
1 parent b96202b commit c303ac0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/interpreter/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ impl IntegerExt for layout::Integer {
17981798
}
17991799

18001800

1801-
pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: ty::FieldDef<'tcx>, substs: &'tcx Substs<'tcx>) -> Ty<'tcx> {
1801+
pub fn monomorphize_field_ty<'a, 'tcx:'a >(tcx: TyCtxt<'a, 'tcx, 'tcx>, f: &ty::FieldDef, substs: &'tcx Substs<'tcx>) -> Ty<'tcx> {
18021802
let substituted = &f.ty(tcx, substs);
18031803
tcx.normalize_associated_type(&substituted)
18041804
}

src/interpreter/terminator/intrinsics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
489489
fn field_ty(
490490
&self,
491491
param_substs: &Substs<'tcx>,
492-
f: ty::FieldDef<'tcx>,
493-
)-> ty::Ty<'tcx> {
492+
f: &ty::FieldDef,
493+
) -> ty::Ty<'tcx> {
494494
self.tcx.normalize_associated_type(&f.ty(self.tcx, param_substs))
495495
}
496496
}

0 commit comments

Comments
 (0)