@@ -452,7 +452,7 @@ impl<'a> State<'a> {
452452 self . end ( )
453453 }
454454
455- pub fn commasep_exprs ( & mut self , b : Breaks , exprs : & [ P < hir:: Expr > ] ) -> io:: Result < ( ) > {
455+ pub fn commasep_exprs ( & mut self , b : Breaks , exprs : & [ hir:: Expr ] ) -> io:: Result < ( ) > {
456456 self . commasep_cmnt ( b, exprs, |s, e| s. print_expr ( & e) , |e| e. span )
457457 }
458458
@@ -1200,7 +1200,7 @@ impl<'a> State<'a> {
12001200 }
12011201
12021202
1203- fn print_call_post ( & mut self , args : & [ P < hir:: Expr > ] ) -> io:: Result < ( ) > {
1203+ fn print_call_post ( & mut self , args : & [ hir:: Expr ] ) -> io:: Result < ( ) > {
12041204 self . popen ( ) ?;
12051205 self . commasep_exprs ( Inconsistent , args) ?;
12061206 self . pclose ( )
@@ -1218,10 +1218,10 @@ impl<'a> State<'a> {
12181218 Ok ( ( ) )
12191219 }
12201220
1221- fn print_expr_vec ( & mut self , exprs : & [ P < hir:: Expr > ] ) -> io:: Result < ( ) > {
1221+ fn print_expr_vec ( & mut self , exprs : & [ hir:: Expr ] ) -> io:: Result < ( ) > {
12221222 self . ibox ( indent_unit) ?;
12231223 word ( & mut self . s , "[" ) ?;
1224- self . commasep_exprs ( Inconsistent , & exprs[ .. ] ) ?;
1224+ self . commasep_exprs ( Inconsistent , exprs) ?;
12251225 word ( & mut self . s , "]" ) ?;
12261226 self . end ( )
12271227 }
@@ -1274,24 +1274,24 @@ impl<'a> State<'a> {
12741274 Ok ( ( ) )
12751275 }
12761276
1277- fn print_expr_tup ( & mut self , exprs : & [ P < hir:: Expr > ] ) -> io:: Result < ( ) > {
1277+ fn print_expr_tup ( & mut self , exprs : & [ hir:: Expr ] ) -> io:: Result < ( ) > {
12781278 self . popen ( ) ?;
1279- self . commasep_exprs ( Inconsistent , & exprs[ .. ] ) ?;
1279+ self . commasep_exprs ( Inconsistent , exprs) ?;
12801280 if exprs. len ( ) == 1 {
12811281 word ( & mut self . s , "," ) ?;
12821282 }
12831283 self . pclose ( )
12841284 }
12851285
1286- fn print_expr_call ( & mut self , func : & hir:: Expr , args : & [ P < hir:: Expr > ] ) -> io:: Result < ( ) > {
1286+ fn print_expr_call ( & mut self , func : & hir:: Expr , args : & [ hir:: Expr ] ) -> io:: Result < ( ) > {
12871287 self . print_expr_maybe_paren ( func) ?;
12881288 self . print_call_post ( args)
12891289 }
12901290
12911291 fn print_expr_method_call ( & mut self ,
12921292 name : Spanned < ast:: Name > ,
12931293 tys : & [ P < hir:: Ty > ] ,
1294- args : & [ P < hir:: Expr > ] )
1294+ args : & [ hir:: Expr ] )
12951295 -> io:: Result < ( ) > {
12961296 let base_args = & args[ 1 ..] ;
12971297 self . print_expr ( & args[ 0 ] ) ?;
@@ -1340,7 +1340,7 @@ impl<'a> State<'a> {
13401340 self . print_expr ( expr) ?;
13411341 }
13421342 hir:: ExprArray ( ref exprs) => {
1343- self . print_expr_vec ( & exprs[ .. ] ) ?;
1343+ self . print_expr_vec ( exprs) ?;
13441344 }
13451345 hir:: ExprRepeat ( ref element, ref count) => {
13461346 self . print_expr_repeat ( & element, & count) ?;
@@ -1349,13 +1349,13 @@ impl<'a> State<'a> {
13491349 self . print_expr_struct ( path, & fields[ ..] , wth) ?;
13501350 }
13511351 hir:: ExprTup ( ref exprs) => {
1352- self . print_expr_tup ( & exprs[ .. ] ) ?;
1352+ self . print_expr_tup ( exprs) ?;
13531353 }
13541354 hir:: ExprCall ( ref func, ref args) => {
1355- self . print_expr_call ( & func, & args[ .. ] ) ?;
1355+ self . print_expr_call ( & func, args) ?;
13561356 }
13571357 hir:: ExprMethodCall ( name, ref tys, ref args) => {
1358- self . print_expr_method_call ( name, & tys[ ..] , & args[ .. ] ) ?;
1358+ self . print_expr_method_call ( name, & tys[ ..] , args) ?;
13591359 }
13601360 hir:: ExprBinary ( op, ref lhs, ref rhs) => {
13611361 self . print_expr_binary ( op, & lhs, & rhs) ?;
0 commit comments