Skip to content

Commit 274146d

Browse files
author
Jorge Aparicio
committed
rustc_typeck: fix fallout
1 parent 62ee3f1 commit 274146d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc_typeck/check/regionck.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,11 +1052,11 @@ fn constrain_callee(rcx: &mut Rcx,
10521052
}
10531053
}
10541054

1055-
fn constrain_call<'a, I: Iterator<&'a ast::Expr>>(rcx: &mut Rcx,
1056-
call_expr: &ast::Expr,
1057-
receiver: Option<&ast::Expr>,
1058-
mut arg_exprs: I,
1059-
implicitly_ref_args: bool) {
1055+
fn constrain_call<'a, I: Iterator<Item=&'a ast::Expr>>(rcx: &mut Rcx,
1056+
call_expr: &ast::Expr,
1057+
receiver: Option<&ast::Expr>,
1058+
mut arg_exprs: I,
1059+
implicitly_ref_args: bool) {
10601060
//! Invoked on every call site (i.e., normal calls, method calls,
10611061
//! and overloaded operators). Constrains the regions which appear
10621062
//! in the type of the function. Also constrains the regions that

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ fn convert_methods<'a,'tcx,'i,I>(ccx: &CrateCtxt<'a, 'tcx>,
428428
untransformed_rcvr_ty: Ty<'tcx>,
429429
rcvr_ty_generics: &ty::Generics<'tcx>,
430430
rcvr_visibility: ast::Visibility)
431-
where I: Iterator<&'i ast::Method> {
431+
where I: Iterator<Item=&'i ast::Method> {
432432
debug!("convert_methods(untransformed_rcvr_ty={}, rcvr_ty_generics={})",
433433
untransformed_rcvr_ty.repr(ccx.tcx),
434434
rcvr_ty_generics.repr(ccx.tcx));

0 commit comments

Comments
 (0)