| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-27 | extract parse_generic_arg | Mazdak Farrokhzad | -8/+14 | |
| 2020-03-27 | parse_angle_arg: parse constraints first | Mazdak Farrokhzad | -4/+4 | |
| 2020-03-27 | split parse_angle_args into loop / single step | Mazdak Farrokhzad | -63/+67 | |
| 2020-03-27 | parse: move constraint/arg restriction to ast_validation. | Mazdak Farrokhzad | -53/+23 | |
| 2020-03-26 | Rollup merge of #70428 - Centril:move-to-mod, r=petrochenkov | Dylan DPC | -2/+4 | |
| `error_bad_item_kind`: add help text For example, this adds: ``` = help: consider moving the `use` import out to a nearby module scope ``` r? @petrochenkov @estebank Fixes https://github.com/rust-lang/rust/issues/37205. | ||||
| 2020-03-26 | error_bad_item_kind: add help text | Mazdak Farrokhzad | -2/+4 | |
| 2020-03-26 | parse: recover on `const fn()` / `async fn()`. | Mazdak Farrokhzad | -18/+30 | |
| 2020-03-26 | Throw error when encountering `...` instead of `..` while destructing a pattern | Rakshith Ravi | -0/+21 | |
| Added tests and stderr output | ||||
| 2020-03-26 | Rollup merge of #69878 - estebank:chained-ops, r=Centril | Mazdak Farrokhzad | -52/+103 | |
| Tweak chained operators diagnostic Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors r? @Centril | ||||
| 2020-03-25 | review comments | Esteban Küber | -26/+25 | |
| 2020-03-25 | Tweak chained operators diagnostic | Esteban Küber | -46/+98 | |
| Use more selective spans Improve suggestion output Be more selective when displaying suggestions Silence some knock-down type errors | ||||
| 2020-03-25 | Rename `def_span` to `guess_head_span` | Esteban Küber | -1/+1 | |
| 2020-03-23 | Rollup merge of #70248 - Centril:unroot, r=petrochenkov | Mazdak Farrokhzad | -23/+5 | |
| parser: simplify & remove unused field r? @petrochenkov | ||||
| 2020-03-22 | Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril | Dylan DPC | -15/+5 | |
| couple more clippy fixes (let_and_return, if_same_then_else) * summarize if-else-code with identical blocks (clippy::if_same_then_else) * don't create variable bindings just to return the bound value immediately (clippy::let_and_return) | ||||
| 2020-03-22 | Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov | Dylan DPC | -14/+40 | |
| parser: recover on `for<'a> |...| body` closures When encountering `for` and `<` is 1 token ahead, interpret this as an explicitly quantified generic closure and recover, rather than attempting to parse a `for` loop. This provides both improved diagnostics as well as an insurance policy for the ability to use this as the syntax for generic closures in the future. As requested by r? @eddyb | ||||
| 2020-03-22 | Rollup merge of #70172 - eddyb:retokenize-external-src, r=petrochenkov | Dylan DPC | -4/+12 | |
| parse/lexer: support `StringReader::retokenize` called on external files. This ~~should theoretically~~ fixes #69933, ~~but I'm not sure what the best way to test it is~~. **EDIT**: see https://github.com/rust-lang/rust/issues/69933#issuecomment-602019598. r? @petrochenkov cc @Xanewok @staktrace | ||||
| 2020-03-22 | don't create variable bindings just to return the bound value immediately ↵ | Matthias Krüger | -8/+4 | |
| (clippy::let_and_return) | ||||
| 2020-03-22 | parse: nix new_sub_parser_from_file | Mazdak Farrokhzad | -11/+5 | |
| 2020-03-22 | summarize if-else-code with identical blocks (clippy::if_same_then_else) | Matthias Krüger | -7/+1 | |
| 2020-03-21 | parse: nix unused `root_module_name`. | Mazdak Farrokhzad | -16/+4 | |
| 2020-03-21 | recover on `for<'a> |...| body` closures. | Mazdak Farrokhzad | -14/+40 | |
| 2020-03-21 | Rollup merge of #70187 - matthiaskrgr:cl2ppy, r=Mark-Simulacrum | Mazdak Farrokhzad | -9/+9 | |
| more clippy fixes * remove redundant returns (clippy::needless_return) * remove redundant import (clippy::single_component_path_imports) * remove redundant format!() call (clippy::useless_format) * don't use ok() before calling expect() (clippy::ok_expect) | ||||
| 2020-03-20 | remove redundant returns (clippy::needless_return) | Matthias Krüger | -9/+9 | |
| 2020-03-20 | can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs. | Mazdak Farrokhzad | -2/+3 | |
| 2020-03-20 | parse/lexer: support `StringReader::retokenize` called on external files. | Eduard-Mihai Burtescu | -4/+12 | |
| 2020-03-18 | fix rebase fallout | Mazdak Farrokhzad | -7/+4 | |
| 2020-03-18 | tweak outline module parsing spans | Mazdak Farrokhzad | -1/+1 | |
| 2020-03-18 | parser/expand: minor cleanup | Mazdak Farrokhzad | -15/+0 | |
| 2020-03-18 | {rustc_parse -> rustc_expand}::config | Mazdak Farrokhzad | -543/+1 | |
| 2020-03-18 | {rustc_parse::parser -> rustc_expand}::module | Mazdak Farrokhzad | -307/+0 | |
| 2020-03-18 | move Directory -> parser::module | Mazdak Farrokhzad | -20/+19 | |
| 2020-03-18 | parse: module parsing -> item.rs | Mazdak Farrokhzad | -65/+66 | |
| 2020-03-18 | outline modules: parse -> expand. | Mazdak Farrokhzad | -121/+56 | |
| 2020-03-18 | extract error_on_circular_module | Mazdak Farrokhzad | -9/+19 | |
| 2020-03-18 | extract parse_external_module | Mazdak Farrokhzad | -5/+15 | |
| 2020-03-18 | de-fatalize outline module parsing | Mazdak Farrokhzad | -20/+17 | |
| 2020-03-18 | expand: use push_directory | Mazdak Farrokhzad | -2/+2 | |
| 2020-03-18 | decouple eval_src_mod from Parser | Mazdak Farrokhzad | -40/+29 | |
| 2020-03-18 | decouple push_directory from Parser | Mazdak Farrokhzad | -18/+23 | |
| 2020-03-18 | detach submod_path from Parser | Mazdak Farrokhzad | -187/+192 | |
| 2020-03-18 | extract error_on_circular_module | Mazdak Farrokhzad | -10/+20 | |
| 2020-03-18 | extract parse_mod | Mazdak Farrokhzad | -17/+18 | |
| 2020-03-18 | submod_path: use id.span | Mazdak Farrokhzad | -7/+5 | |
| 2020-03-18 | simplify submod_path | Mazdak Farrokhzad | -14/+12 | |
| 2020-03-18 | extract error_decl_mod_in_block | Mazdak Farrokhzad | -13/+12 | |
| 2020-03-18 | extract error_cannot_declare_mod_here | Mazdak Farrokhzad | -27/+27 | |
| 2020-03-18 | submod_path_from_attr: simplify & document | Mazdak Farrokhzad | -12/+13 | |
| 2020-03-16 | Rollup merge of #69989 - petrochenkov:nolegacy, r=eddyb,matthewjasper | Dylan DPC | -3/+3 | |
| resolve/hygiene: `macro_rules` are not "legacy" The "modern" vs "legacy" naming was introduced by jseyfried during initial implementation of macros 2.0. At this point it's clear that `macro_rules` are not going anywhere and won't be deprecated in the near future. So this PR changes the naming "legacy" (when it implies "macro_rules") to "macro_rules". This should also help people reading this code because it's wasn't obvious that "legacy" actually meant "macro_rules" in these contexts. The most contentious renaming here is probably ``` fn modern -> fn normalize_to_macros_2_0 fn modern_and_legacy -> fn normalize_to_macro_rules ``` Other alternatives that I could think of are `normalize_to_opaque`/`normalize_to_semitransparent`, or `strip_non_opaque`/`strip_transparent`, but they seemed less intuitive. The documentation to these functions can be found in `symbol.rs`. r? @matthewjasper | ||||
| 2020-03-16 | Rollup merge of #69520 - kornelski:e69492, r=cramertj | Dylan DPC | -25/+10 | |
| Make error message clearer about creating new module This is a partial improvement for #69492 | ||||
| 2020-03-16 | Other `legacy` -> `macro_rules` | Vadim Petrochenkov | -1/+1 | |
