Remove a span from hir::ExprKind::MethodCall
This commit is contained in:
parent
84e918971d
commit
b11733534d
112 changed files with 211 additions and 220 deletions
|
@ -163,9 +163,9 @@ impl<'tcx> Cx<'tcx> {
|
|||
|
||||
let kind = match expr.kind {
|
||||
// Here comes the interesting stuff:
|
||||
hir::ExprKind::MethodCall(_, method_span, ref args, fn_span) => {
|
||||
hir::ExprKind::MethodCall(segment, ref args, fn_span) => {
|
||||
// Rewrite a.b(c) into UFCS form like Trait::b(a, c)
|
||||
let expr = self.method_callee(expr, method_span, None);
|
||||
let expr = self.method_callee(expr, segment.ident.span, None);
|
||||
// When we apply adjustments to the receiver, use the span of
|
||||
// the overall method call for better diagnostics. args[0]
|
||||
// is guaranteed to exist, since a method call always has a receiver.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue