about summary refs log tree commit diff
path: root/src/libsyntax/parse/diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2019-05-25Move some methods to `diagnostics.rs` away from `parser.rs`Esteban Küber-7/+429
Move a bunch of error recovery methods to `diagnostics.rs` away from `parser.rs`.
2019-05-25Tweak `self` arg not as first argument of a method diagnosticEsteban Küber-0/+45
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-24Revert changes that belong to separate PREsteban Küber-1/+1
2019-05-24Move diagnostic logic out of parserEsteban Küber-0/+19
2019-05-24review commentsEsteban Küber-2/+54
2019-05-23tweak discriminant on non-nullary enum diagnosticAndy Russell-3/+44
Adds notes pointing at the non-nullary variants, and uses "custom discriminant" language to be consistent with the Reference.
2019-05-22Restore the old behavior of the rustdoc keyword check + Fix rebaseVadim Petrochenkov-2/+2
2019-05-16review commentsEsteban Küber-26/+22
2019-05-16Move some parser recovery methods to diagnosticsEsteban Küber-2/+266
2019-05-16Review commentsEsteban Küber-1/+39
- Change wording of suggestion - Move recovery logic to `diagnostics.rs` - Reduce ammount of code duplication
2019-05-01move some functions from parser.rs to diagostics.rsAndrew Xu-0/+226
parser.rs is too big. Some functions only for error reporting and error recovery are being moved to diagostics.rs.