rust/src/libsyntax/parse
Esteban Küber 976541884f Tweak self arg not as first argument of a method diagnostic
Mention that `self` is only valid on "associated functions"
```
error: unexpected `self` argument in function
  --> $DIR/self-in-function-arg.rs:1:15
   |
LL | fn foo(x:i32, self: i32) -> i32 { self }
   |               ^^^^ not valid as function argument
   |
   = note: `self` is only valid as the first argument of an associated function
```

When it is a method, mention it must be first
```
error: unexpected `self` argument in function
  --> $DIR/trait-fn.rs:4:20
   |
LL |     fn c(foo: u32, self) {}
   |                    ^^^^ must be the first associated function argument
```
2019-05-25 12:05:18 -07:00
..
lexer syntax: Turn token::Lit into a struct 2019-05-23 12:46:24 +03:00
attr.rs Use SmallVec in TokenStreamBuilder. 2019-03-29 09:32:58 +11:00
classify.rs Move literal parsing code into a separate file 2019-05-11 16:03:16 +03:00
diagnostics.rs Tweak self arg not as first argument of a method diagnostic 2019-05-25 12:05:18 -07:00
literal.rs syntax: Some code cleanup 2019-05-23 12:46:41 +03:00
mod.rs Fix rebase 2019-05-24 11:50:21 -07:00
parser.rs Tweak self arg not as first argument of a method diagnostic 2019-05-25 12:05:18 -07:00
token.rs syntax: Some code cleanup 2019-05-23 12:46:41 +03:00
unescape.rs introduce unescape module 2019-05-02 15:31:57 +03:00
unescape_error_reporting.rs introduce unescape module 2019-05-02 15:31:57 +03:00