auto merge of #13713 : edwardw/rust/methodcall-span, r=alexcrichton
Specifically, the method parameter cardinality mismatch or missing method error message span now gets method itself exactly. It was the whole expression. Closes #9390 Closes #13684 Closes #13709
This commit is contained in:
@@ -798,7 +798,7 @@ pub fn noop_fold_expr<T: Folder>(e: @Expr, folder: &mut T) -> @Expr {
|
||||
}
|
||||
ExprMethodCall(i, ref tps, ref args) => {
|
||||
ExprMethodCall(
|
||||
folder.fold_ident(i),
|
||||
respan(i.span, folder.fold_ident(i.node)),
|
||||
tps.iter().map(|&x| folder.fold_ty(x)).collect(),
|
||||
args.iter().map(|&x| folder.fold_expr(x)).collect())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user