diff options
| author | Edward Wang <edward.yu.wang@gmail.com> | 2014-04-24 05:19:23 +0800 |
|---|---|---|
| committer | Edward Wang <edward.yu.wang@gmail.com> | 2014-04-24 06:16:46 +0800 |
| commit | 899f22238669bade874f29f784cdffba28ff0982 (patch) | |
| tree | dec876a0dd6a32f30d555388c592cf8a579b0390 /src/libsyntax/fold.rs | |
| parent | b5dd3f05fe95168b5569d0f519636149479eb6ac (diff) | |
| download | rust-899f22238669bade874f29f784cdffba28ff0982.tar.gz rust-899f22238669bade874f29f784cdffba28ff0982.zip | |
Calibrate span for method call error messages
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
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 04b289b9fca..d50e425b9a7 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -797,7 +797,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()) } |
