rustc: fix fallout
This commit is contained in:
parent
6b19a02080
commit
62ee3f1622
12 changed files with 34 additions and 21 deletions
|
@ -150,7 +150,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn pats_all<'b, I: Iterator<&'b P<ast::Pat>>>(&mut self,
|
||||
fn pats_all<'b, I: Iterator<Item=&'b P<ast::Pat>>>(&mut self,
|
||||
pats: I,
|
||||
pred: CFGIndex) -> CFGIndex {
|
||||
//! Handles case where all of the patterns must match.
|
||||
|
@ -501,7 +501,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn call<'b, I: Iterator<&'b ast::Expr>>(&mut self,
|
||||
fn call<'b, I: Iterator<Item=&'b ast::Expr>>(&mut self,
|
||||
call_expr: &ast::Expr,
|
||||
pred: CFGIndex,
|
||||
func_or_rcvr: &ast::Expr,
|
||||
|
@ -521,7 +521,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn exprs<'b, I: Iterator<&'b ast::Expr>>(&mut self,
|
||||
fn exprs<'b, I: Iterator<Item=&'b ast::Expr>>(&mut self,
|
||||
exprs: I,
|
||||
pred: CFGIndex) -> CFGIndex {
|
||||
//! Constructs graph for `exprs` evaluated in order
|
||||
|
@ -535,7 +535,7 @@ impl<'a, 'tcx> CFGBuilder<'a, 'tcx> {
|
|||
opt_expr.iter().fold(pred, |p, e| self.expr(&**e, p))
|
||||
}
|
||||
|
||||
fn straightline<'b, I: Iterator<&'b ast::Expr>>(&mut self,
|
||||
fn straightline<'b, I: Iterator<Item=&'b ast::Expr>>(&mut self,
|
||||
expr: &ast::Expr,
|
||||
pred: CFGIndex,
|
||||
subexprs: I) -> CFGIndex {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue