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
This commit is contained in:
parent
b5dd3f05fe
commit
899f222386
9 changed files with 53 additions and 17 deletions
|
|
@ -480,7 +480,7 @@ pub enum Expr_ {
|
|||
ExprBox(@Expr, @Expr),
|
||||
ExprVec(Vec<@Expr>),
|
||||
ExprCall(@Expr, Vec<@Expr>),
|
||||
ExprMethodCall(Ident, Vec<P<Ty>>, Vec<@Expr>),
|
||||
ExprMethodCall(SpannedIdent, Vec<P<Ty>>, Vec<@Expr>),
|
||||
ExprTup(Vec<@Expr>),
|
||||
ExprBinary(BinOp, @Expr, @Expr),
|
||||
ExprUnary(UnOp, @Expr),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue