| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 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 | -8/+8 | |
| 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 | -8/+8 | |
| 2020-03-20 | can_begin_literal_maybe_minus: `true` on `"-"? lit` NTs. | Mazdak Farrokhzad | -2/+3 | |
| 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 | {rustc_parse::parser -> rustc_expand}::module | Mazdak Farrokhzad | -307/+0 | |
| 2020-03-18 | move Directory -> parser::module | Mazdak Farrokhzad | -3/+18 | |
| 2020-03-18 | parse: module parsing -> item.rs | Mazdak Farrokhzad | -65/+66 | |
| 2020-03-18 | outline modules: parse -> expand. | Mazdak Farrokhzad | -98/+50 | |
| 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 | |
| 2020-03-16 | ast/hir: `MacroDef::legacy` -> `MacroDef::macro_rules` | Vadim Petrochenkov | -2/+2 | |
| 2020-03-15 | Rollup merge of #69589 - petrochenkov:maccall, r=Centril | Mazdak Farrokhzad | -31/+23 | |
| ast: `Mac`/`Macro` -> `MacCall` It's now obvious that these refer to macro calls rather than to macro definitions. It's also a single name instead of two different names in different places. `rustc_expand` usually calls macro calls in a wide sense (including attributes and derives) "macro invocations", but structures and variants renamed in this PR are only relevant to fn-like macros, so it's simpler and clearer to just call them calls. cc https://github.com/rust-lang/rust/pull/63586#discussion_r314232513 r? @eddyb | ||||
| 2020-03-12 | ast: `Mac`/`Macro` -> `MacCall` | Vadim Petrochenkov | -31/+23 | |
| 2020-03-12 | Rollup merge of #69722 - estebank:negative-impl-span-ast, r=Centril | Mazdak Farrokhzad | -7/+11 | |
| Tweak output for invalid negative impl AST errors Use more accurate spans for negative `impl` errors. r? @Centril | ||||
| 2020-03-11 | Rollup merge of #69760 - Centril:parse-expr-improve, r=estebank | Mazdak Farrokhzad | -240/+281 | |
| Improve expression & attribute parsing This PR includes misc improvements to expression and attribute parsing. 1. Some code simplifications 2. Better recovery for various block forms, e.g. `loop statements }` (missing `{` after `loop`). (See e.g., `block-no-opening-brace.rs` among others for examples.) 3. Added recovery for e.g., `unsafe $b` where `$b` refers to a `block` macro fragment. (See `bad-interpolated-block.rs` for examples.) 4. ^--- These are done so that code sharing in block parsing is increased. 5. Added recovery for e.g., `'label: loop { ... }` (See `labeled-no-colon-expr.rs`.) 6. Added recovery for e.g., `&'lifetime expr` (See `regions-out-of-scope-slice.rs`.) 7. Added recovery for e.g., `fn foo() = expr;` (See `fn-body-eq-expr-semi.rs`.) 8. Simplified attribute parsing code & slightly improved diagnostics. 9. Added recovery for e.g., `Box<('a) + Trait>`. 10. Added recovery for e.g, `if true #[attr] {} else #[attr] {} else #[attr] if true {}`. r? @estebank | ||||
| 2020-03-10 | parse: Tweak the function parameter edition check | Vadim Petrochenkov | -3/+1 | |
| Move anon-params tests to ui/anon-params. | ||||
| 2020-03-10 | parse_if_expr: recover on attributes | Mazdak Farrokhzad | -8/+38 | |
| 2020-03-10 | trait-object-lifetime-parens: improve recovery. | Mazdak Farrokhzad | -6/+11 | |
| 2020-03-10 | use check_path more | Mazdak Farrokhzad | -8/+5 | |
| 2020-03-10 | simplify & improve parse_ty_tuple_or_parens | Mazdak Farrokhzad | -19/+18 | |
| 2020-03-10 | error_block_no_opening_brace: handle closures better | Mazdak Farrokhzad | -9/+7 | |
| 2020-03-10 | parser: add note for `'label expr`. | Mazdak Farrokhzad | -0/+1 | |
| 2020-03-10 | parser/attr: adjust indentation. | Mazdak Farrokhzad | -7/+5 | |
| 2020-03-10 | parse_labeled_expr: add a suggestion on missing colon. | Mazdak Farrokhzad | -3/+13 | |
| 2020-03-10 | parse_block_tail: reduce visibility | Mazdak Farrokhzad | -5/+1 | |
| 2020-03-10 | unify/improve/simplify attribute parsing | Mazdak Farrokhzad | -132/+102 | |
| 2020-03-10 | parse: recover on `fn foo() = expr;` | Mazdak Farrokhzad | -1/+16 | |
| 2020-03-10 | parse: simplify parse_fn_body | Mazdak Farrokhzad | -17/+7 | |
| 2020-03-10 | parse: recover on `&'lt $expr` / `'lt $expr`. | Mazdak Farrokhzad | -4/+31 | |
| 2020-03-10 | more reuse in block parsing & improve diagnostics. | Mazdak Farrokhzad | -13/+20 | |
| 2020-03-10 | simplify parse_inner_attributes | Mazdak Farrokhzad | -6/+2 | |
| 2020-03-10 | use error_block_no_opening_brace more | Mazdak Farrokhzad | -1/+5 | |
| 2020-03-10 | parse_labeled_expr: simplify | Mazdak Farrokhzad | -15/+13 | |
