| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-06-02 | Rollup merge of #61438 - estebank:generics-span, r=varkor | Mazdak Farrokhzad | -12/+13 | |
| Point at individual type args on arg count mismatch - Point at individual type arguments on arg count mismatch - Make generics always have a valid span, even when there are no args - Explain that `impl Trait` introduces an implicit type argument Fix #55991. | ||||
| 2019-06-01 | Extend docstring | Esteban Küber | -0/+7 | |
| 2019-05-31 | Make generics always have a valid span | Esteban Küber | -12/+13 | |
| 2019-05-31 | Rollup merge of #61374 - VirrageS:master, r=Centril | Pietro Albini | -2/+2 | |
| Explicitly suggest 'type_ascription' feature Closes: #61325 r? @estebank | ||||
| 2019-05-30 | Move code from `parser` to `diagnostics` | Esteban Küber | -36/+40 | |
| 2019-05-30 | Remove `ArgSource::Recovery` | Esteban Küber | -3/+3 | |
| 2019-05-30 | Recover gracefully from argument with missing type or param name | Esteban Küber | -17/+56 | |
| 2019-05-31 | Parse 'async unsafe fn' instead of 'unsafe async fn'. | Mazdak Farrokhzad | -37/+34 | |
| 2019-05-30 | Explicitly suggest 'type_ascription' feature | Janusz Marcinkiewicz | -2/+2 | |
| 2019-05-29 | libsyntax: introduce 'fn is_keyword_ahead(dist, keywords)'. | Mazdak Farrokhzad | -35/+38 | |
| 2019-05-27 | Use `Symbol` equality in `is_ident_named`. | Nicholas Nethercote | -8/+8 | |
| 2019-05-27 | Avoid some re-interning in `to_lit_token`. | Nicholas Nethercote | -5/+8 | |
| 2019-05-27 | Add `to_symbol` methods. | Nicholas Nethercote | -3/+3 | |
| 2019-05-27 | Pre-intern "0", "1", ..., "9", and use where appropriate. | Nicholas Nethercote | -3/+3 | |
| 2019-05-27 | Avoid unnecessary internings. | Nicholas Nethercote | -1/+1 | |
| Most involving `Symbol::intern` on string literals. | ||||
| 2019-05-25 | review comments: move back some methods and clean up wording | Esteban Küber | -172/+176 | |
| 2019-05-25 | Move some methods to `diagnostics.rs` away from `parser.rs` | Esteban Küber | -413/+462 | |
| Move a bunch of error recovery methods to `diagnostics.rs` away from `parser.rs`. | ||||
| 2019-05-25 | Tweak `self` arg not as first argument of a method diagnostic | Esteban Küber | -37/+55 | |
| 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-24 | Revert changes that belong to separate PR | Esteban Küber | -1/+1 | |
| 2019-05-24 | Move diagnostic logic out of parser | Esteban Küber | -19/+20 | |
| 2019-05-24 | Fix rebase | Esteban Küber | -4/+6 | |
| 2019-05-24 | review comments | Esteban Küber | -55/+64 | |
| 2019-05-24 | Tweak macro parse errors when reaching EOF during macro call parse | Esteban Küber | -37/+66 | |
| - Add detail on origin of current parser when reaching EOF and stop saying "found <eof>" and point at the end of macro calls - Handle empty `cfg_attr` attribute - Reword empty `derive` attribute error | ||||
| 2019-05-24 | Auto merge of #60803 - varkor:remove-in-place-syntax, r=petrochenkov | bors | -16/+0 | |
| Remove `ObsoleteInPlace` The in place syntax has been deprecated for over a year. As it is, this is accumulated cruft: the error messages are unlikely to be helpful any more and it conflicts with some useful syntax (e.g. const generics in some instances). It may be that removing `Token::LArrow` is backwards-incompatible. We should do a crater run to check. cc @eddyb | ||||
| 2019-05-24 | Auto merge of #60984 - matthewjasper:borrowck-error-reporting-cleanup, ↵ | bors | -4/+5 | |
| r=pnkfelix Borrowck error reporting cleanup * Don't show variables created by desugarings in borrowck errors * Move "conflict error" reporting to it's own module, so that `error_reporting` contains only common error reporting methods. * Remove unused `ScopeTree` parameter. r? @pnkfelix | ||||
| 2019-05-24 | Remove `ObsoleteInPlace` | varkor | -16/+0 | |
| 2019-05-24 | Rollup merge of #61056 - euclio:custom-discriminant-error, r=estebank | Mazdak Farrokhzad | -16/+45 | |
| tweak discriminant on non-nullary enum diagnostic Adds notes pointing at the non-nullary variants, and uses "custom discriminant" language to be consistent with the Reference. Fixes #61039. r? @estebank | ||||
| 2019-05-23 | tweak discriminant on non-nullary enum diagnostic | Andy Russell | -16/+45 | |
| Adds notes pointing at the non-nullary variants, and uses "custom discriminant" language to be consistent with the Reference. | ||||
| 2019-05-23 | syntax: Some code cleanup | Vadim Petrochenkov | -211/+155 | |
| 2019-05-23 | syntax: Turn `token::Lit` into a struct | Vadim Petrochenkov | -175/+196 | |
| 2019-05-23 | syntax: Remove an obsolete hack from literal comparisons | Vadim Petrochenkov | -9/+1 | |
| 2019-05-23 | syntax: Fix spans for boolean literals passed to proc macros | Vadim Petrochenkov | -5/+5 | |
| 2019-05-23 | syntax: More consistent wording for some literal parsing errors | Vadim Petrochenkov | -2/+2 | |
| 2019-05-23 | syntax: Return named errors from literal parsing functions | Vadim Petrochenkov | -126/+164 | |
| 2019-05-23 | Auto merge of #60174 - matthewjasper:add-match-arm-scopes, r=pnkfelix | bors | -0/+4 | |
| Add match arm scopes and other scope fixes * Add drop and lint scopes for match arms. * Lint attributes are now respected on match arms. * Make sure we emit a StorageDead if we diverge when initializing a temporary. * Adjust MIR pretty printing of scopes for locals. * Don't generate duplicate lint scopes for `let statements`. * Add some previously missing fake borrows for matches. closes #46525 cc @rust-lang/compiler | ||||
| 2019-05-22 | Restore the old behavior of the rustdoc keyword check + Fix rebase | Vadim Petrochenkov | -8/+7 | |
| 2019-05-22 | Eliminate unnecessary `Ident::with_empty_ctxt`s | Vadim Petrochenkov | -10/+8 | |
| 2019-05-22 | Simplify use of keyword symbols | Vadim Petrochenkov | -244/+247 | |
| 2019-05-22 | Rollup merge of #60995 - topecongiro:parser-from-stream-and-base-dir, ↵ | Mazdak Farrokhzad | -0/+17 | |
| r=michaelwoerister Add stream_to_parser_with_base_dir This PR adds `stream_to_parser_with_base_dir`, which creates a parser from a token stream and a base directory. Context: I would like to parse `cfg_if!` macro and get a list of modules defined inside it from rustfmt so that rustfmt can format those modules (cc https://github.com/rust-lang/rustfmt/issues/3253). To do so, I need to create a parser from `TokenStream` and set the directory of `Parser` to the same directory as the parent directory of a file which contains `cfg_if!` invocation. AFAIK there is no way to achieve this, and hence this PR. Alternatively, I could change the visibility of `Parser.directory` from `crate` to `pub` so that the value can be modified after initializing a parser. I don't have a preference over either approach (or others, as long as it works). | ||||
| 2019-05-21 | Dont show variables from desugarings in borrowck errors | Matthew Jasper | -4/+5 | |
| 2019-05-21 | Give match arms an HirId and a Span | Matthew Jasper | -0/+4 | |
| 2019-05-21 | Move `edition` outside the hygiene lock and avoid accessing it | John Kåre Alsaker | -27/+31 | |
| 2019-05-21 | Fix tidy: remove a trailing whitespace | topecongiro | -1/+1 | |
| 2019-05-21 | Add doc comment | topecongiro | -0/+10 | |
| 2019-05-21 | Add stream_to_parser_with_base_dir | topecongiro | -0/+7 | |
| 2019-05-19 | Improve type size assertions | Vadim Petrochenkov | -3/+3 | |
| Now they - Tell what the new size is, when it changes - Do not require passing an identifier | ||||
| 2019-05-18 | Auto merge of #60910 - nnethercote:avoid-some-unnecessary-interning, ↵ | bors | -2/+3 | |
| r=petrochenkov Avoid some unnecessary interning r? @petrochenkov | ||||
| 2019-05-17 | Rollup merge of #60901 - estebank:str-str-str, r=Centril | Manish Goregaokar | -2/+1 | |
| Handle more string addition cases with appropriate suggestions | ||||
| 2019-05-17 | Avoid unnecessary interning in `Ident::from_str()` calls. | Nicholas Nethercote | -2/+3 | |
| A lot of these static symbols are pre-interned. | ||||
| 2019-05-16 | Fix binop span | Esteban Küber | -2/+1 | |
