Skip to content

Commit 6e84023

Browse files
eddybalexcrichton
authored andcommitted
Removed the obsolete ast::CallSugar (previously used by do).
1 parent 07ea23e commit 6e84023

File tree

23 files changed

+79
-146
lines changed

23 files changed

+79
-146
lines changed

src/librustc/middle/borrowck/check_loans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,10 @@ fn check_loans_in_expr<'a>(this: &mut CheckLoanCtxt<'a>,
831831
ast::ExprAssignOp(_, _, dest, _) => {
832832
this.check_assignment(dest);
833833
}
834-
ast::ExprCall(f, ref args, _) => {
834+
ast::ExprCall(f, ref args) => {
835835
this.check_call(expr, Some(f), f.id, f.span, *args);
836836
}
837-
ast::ExprMethodCall(callee_id, _, _, ref args, _) => {
837+
ast::ExprMethodCall(callee_id, _, _, ref args) => {
838838
this.check_call(expr, None, callee_id, expr.span, *args);
839839
}
840840
ast::ExprIndex(callee_id, _, rval) |

src/librustc/middle/cfg/construct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ impl CFGBuilder {
351351
self.straightline(expr, pred, *elems)
352352
}
353353

354-
ast::ExprCall(func, ref args, _) => {
354+
ast::ExprCall(func, ref args) => {
355355
self.call(expr, pred, func, *args)
356356
}
357357

358-
ast::ExprMethodCall(_, _, _, ref args, _) => {
358+
ast::ExprMethodCall(_, _, _, ref args) => {
359359
self.call(expr, pred, args[0], args.slice_from(1))
360360
}
361361

src/librustc/middle/check_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub fn check_expr(v: &mut CheckCrateVisitor,
160160
}
161161
}
162162
}
163-
ExprCall(callee, _, NoSugar) => {
163+
ExprCall(callee, _) => {
164164
let def_map = def_map.borrow();
165165
match def_map.get().find(&callee.id) {
166166
Some(&DefStruct(..)) => {} // OK.

src/librustc/middle/dataflow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,12 @@ impl<'a, O:DataFlowOperator> PropagationContext<'a, O> {
577577
self.walk_opt_expr(with_expr, in_out, loop_scopes);
578578
}
579579

580-
ast::ExprCall(f, ref args, _) => {
580+
ast::ExprCall(f, ref args) => {
581581
self.walk_expr(f, in_out, loop_scopes);
582582
self.walk_call(f.id, expr.id, *args, in_out, loop_scopes);
583583
}
584584

585-
ast::ExprMethodCall(callee_id, _, _, ref args, _) => {
585+
ast::ExprMethodCall(callee_id, _, _, ref args) => {
586586
self.walk_call(callee_id, expr.id, *args, in_out, loop_scopes);
587587
}
588588

src/librustc/middle/effect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Visitor<()> for EffectCheckVisitor {
120120

121121
fn visit_expr(&mut self, expr: &ast::Expr, _:()) {
122122
match expr.node {
123-
ast::ExprMethodCall(callee_id, _, _, _, _) => {
123+
ast::ExprMethodCall(callee_id, _, _, _) => {
124124
let base_type = ty::node_id_to_type(self.tcx, callee_id);
125125
debug!("effect: method call case, base type is {}",
126126
ppaux::ty_to_str(self.tcx, base_type));
@@ -129,7 +129,7 @@ impl Visitor<()> for EffectCheckVisitor {
129129
"invocation of unsafe method")
130130
}
131131
}
132-
ast::ExprCall(base, _, _) => {
132+
ast::ExprCall(base, _) => {
133133
let base_type = ty::node_id_to_type(self.tcx, base.id);
134134
debug!("effect: call case, base type is {}",
135135
ppaux::ty_to_str(self.tcx, base_type));

src/librustc/middle/liveness.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ impl Liveness {
12051205
})
12061206
}
12071207

1208-
ExprCall(f, ref args, _) => {
1208+
ExprCall(f, ref args) => {
12091209
// calling a fn with bot return type means that the fn
12101210
// will fail, and hence the successors can be ignored
12111211
let t_ret = ty::ty_fn_ret(ty::expr_ty(self.tcx, f));
@@ -1215,7 +1215,7 @@ impl Liveness {
12151215
self.propagate_through_expr(f, succ)
12161216
}
12171217

1218-
ExprMethodCall(callee_id, _, _, ref args, _) => {
1218+
ExprMethodCall(callee_id, _, _, ref args) => {
12191219
// calling a method with bot return type means that the method
12201220
// will fail, and hence the successors can be ignored
12211221
let t_ret = ty::ty_fn_ret(ty::node_id_to_type(self.tcx, callee_id));

src/librustc/middle/moves.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl VisitContext {
382382
}
383383
}
384384

385-
ExprCall(callee, ref args, _) => { // callee(args)
385+
ExprCall(callee, ref args) => { // callee(args)
386386
// Figure out whether the called function is consumed.
387387
let mode = match ty::get(ty::expr_ty(self.tcx, callee)).sty {
388388
ty::ty_closure(ref cty) => {
@@ -412,7 +412,7 @@ impl VisitContext {
412412
self.use_fn_args(callee.id, *args);
413413
}
414414

415-
ExprMethodCall(callee_id, _, _, ref args, _) => { // callee.m(args)
415+
ExprMethodCall(callee_id, _, _, ref args) => { // callee.m(args)
416416
self.use_fn_args(callee_id, *args);
417417
}
418418

src/librustc/middle/privacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl<'a> Visitor<()> for PrivacyVisitor<'a> {
705705
_ => {}
706706
}
707707
}
708-
ast::ExprMethodCall(_, ident, _, ref args, _) => {
708+
ast::ExprMethodCall(_, ident, _, ref args) => {
709709
// see above
710710
let t = ty::type_autoderef(ty::expr_ty(self.tcx, args[0]));
711711
match ty::get(t).sty {

src/librustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5221,7 +5221,7 @@ impl Resolver {
52215221
let traits = self.search_for_traits_containing_method(ident);
52225222
self.trait_map.insert(expr.id, @RefCell::new(traits));
52235223
}
5224-
ExprMethodCall(_, ident, _, _, _) => {
5224+
ExprMethodCall(_, ident, _, _) => {
52255225
debug!("(recording candidate traits for expr) recording \
52265226
traits for {}",
52275227
expr.id);

src/librustc/middle/trans/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn const_expr_unadjusted(cx: @CrateContext, e: &ast::Expr,
647647
}
648648
}
649649
}
650-
ast::ExprCall(callee, ref args, _) => {
650+
ast::ExprCall(callee, ref args) => {
651651
let tcx = cx.tcx;
652652
let opt_def = {
653653
let def_map = tcx.def_map.borrow();

0 commit comments

Comments
 (0)