| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-05-28 | Refactor away some functions from hir::pat_util | Vadim Petrochenkov | -12/+6 | |
| 2016-05-28 | Rollup merge of #33854 - petrochenkov:prefvis, r=eddyb | Manish Goregaokar | -11/+4 | |
| Apply visit_path to import prefixes by default Overriding `visit_path` is not enough to visit all paths, some import prefixes are not visited and `visit_path_list_item` need to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item. r? @eddyb | ||||
| 2016-05-28 | Rollup merge of #33820 - jonathandturner:format_readability_updates, ↵ | Manish Goregaokar | -0/+32 | |
| r=nikomatsakis Increase spacing in error format for readability. Two small tweaks that seem to help readability quite a bit: * Add spacing header<->snippet, but use the |> on the side for visual consistency * Fix #33819 * Fix #33763 * Move format-sensitive test (issue-26480 in cfail) to ui test r? @nikomatsakis | ||||
| 2016-05-28 | Fix macro call site spans | Jeffrey Seyfried | -23/+1 | |
| 2016-05-27 | Auto merge of #33706 - jseyfried:refactor_cfg, r=nrc | bors | -603/+348 | |
| Perform `cfg` attribute processing during macro expansion and fix bugs This PR refactors `cfg` attribute processing and fixes bugs. More specifically: - It merges gated feature checking for stmt/expr attributes, `cfg_attr` processing, and `cfg` processing into a single fold. - This allows feature gated `cfg` variables to be used in `cfg_attr` on unconfigured items. All other feature gated attributes can already be used on unconfigured items. - It performs `cfg` attribute processing during macro expansion instead of after expansion so that macro-expanded items are configured the same as ordinary items. In particular, to match their non-expanded counterparts, - macro-expanded unconfigured macro invocations are no longer expanded, - macro-expanded unconfigured macro definitions are no longer usable, and - feature gated `cfg` variables on macro-expanded macro definitions/invocations are now errors. This is a [breaking-change]. For example, the following would break: ```rust macro_rules! m { () => { #[cfg(attr)] macro_rules! foo { () => {} } foo!(); // This will be an error macro_rules! bar { () => { fn f() {} } } #[cfg(attr)] bar!(); // This will no longer be expanded ... fn g() { f(); } // ... so that `f` will be unresolved. #[cfg(target_thread_local)] // This will be a gated feature error macro_rules! baz { () => {} } } } m!(); ``` r? @nrc | ||||
| 2016-05-27 | Comment methods in `CfgFolder` | Jeffrey Seyfried | -0/+7 | |
| 2016-05-27 | Auto merge of #33900 - GuillaumeGomez:rollup, r=GuillaumeGomez | bors | -7/+10 | |
| Rollup of 10 pull requests - Successful merges: #33753, #33815, #33829, #33858, #33865, #33866, #33870, #33874, #33891, #33898 - Failed merges: | ||||
| 2016-05-27 | Rollup merge of #33870 - jseyfried:ice-issue-33569, r=pnkfelix | Guillaume Gomez | -7/+10 | |
| Fix ICE on parsing a bad metavariable in a macro definition Fixes #33569, fixes #33728. r? @pnkfelix | ||||
| 2016-05-27 | Rollup merge of #33839 - kamalmarhubi:codemape-get-filemap-option, r=nmatsakis | Manish Goregaokar | -3/+3 | |
| This is more idiomatic, putting the caller in charge of whether or not to panic. | ||||
| 2016-05-27 | Rollup merge of #33644 - petrochenkov:selfast, r=nrc | Manish Goregaokar | -221/+124 | |
| The AST part of https://github.com/rust-lang/rust/pull/33505. https://github.com/rust-lang/rust/pull/33505 isn't landed yet, so this PR is based on top of it. r? @nrc plugin-[breaking-change] cc #31645 @Manishearth | ||||
| 2016-05-27 | Rollup merge of #33639 - petrochenkov:dotdot, r=nmatsakis | Manish Goregaokar | -76/+97 | |
| cc https://github.com/rust-lang/rust/issues/33627 r? @nikomatsakis plugin-[breaking-change] cc https://github.com/rust-lang/rust/issues/31645 @Manishearth | ||||
| 2016-05-27 | Rollup merge of #33351 - birkenfeld:loop-label-spans, r=pnkfelix | Manish Goregaokar | -41/+51 | |
| This makes the \"shadowing labels\" warning *not* print the entire loop as a span, but only the lifetime. Also makes #31719 go away, but does not fix its root cause (the span of the expanded loop is still wonky, but not used anymore). | ||||
| 2016-05-27 | Refactor `expand_expr` | Jeffrey Seyfried | -35/+22 | |
| 2016-05-27 | Strip unconfigured items during macro expansion | Jeffrey Seyfried | -8/+45 | |
| 2016-05-27 | Update spans' `expn_id` during the marking fold | Jeffrey Seyfried | -81/+20 | |
| 2016-05-27 | Process `cfg_attr` attributes on non-optional expressions | Jeffrey Seyfried | -38/+37 | |
| 2016-05-26 | Move cfg_attr processing and stmt/expr attribute gated feature checking into ↵ | Jeffrey Seyfried | -248/+86 | |
| `StripUnconfigured` | ||||
| 2016-05-26 | Implement `CfgFolder` directly instead of passing a closure to `strip_items` | Jeffrey Seyfried | -34/+29 | |
| 2016-05-26 | Refactor `CfgFolder::in_cfg` -> `CfgFolder::configure` | Jeffrey Seyfried | -45/+29 | |
| 2016-05-26 | Introduce `CfgFolder` trait | Jeffrey Seyfried | -19/+32 | |
| 2016-05-26 | Refactor the `syntax::config::fold_*` functions into methods | Jeffrey Seyfried | -147/+81 | |
| 2016-05-26 | Add and use `HasAttrs` trait | Jeffrey Seyfried | -77/+89 | |
| 2016-05-26 | Reject a LHS formed of a single sequence TT during `macro_rules!` checking. | Leo Testard | -9/+4 | |
| This was already rejected during expansion. Encountering malformed LHS or RHS during expansion is now considered a bug. | ||||
| 2016-05-26 | Auto merge of #33766 - jseyfried:cleanup_expansion, r=nrc | bors | -411/+186 | |
| Cleanup macro expansion and improve diagnostics Cleanup macro expansion and improve diagnostics. Fixes #33709. r? @nrc | ||||
| 2016-05-26 | Address review comments | Vadim Petrochenkov | -2/+6 | |
| 2016-05-26 | Implement `..` in tuple (struct) patterns | Vadim Petrochenkov | -76/+93 | |
| 2016-05-26 | Fix ICE on failure to parse token tree | Jeffrey Seyfried | -2/+5 | |
| 2016-05-25 | parser.rs: fix typos in comments | Carlo Teubner | -5/+5 | |
| 2016-05-25 | Add a new AST-only type variant `ImplicitSelf` | Vadim Petrochenkov | -26/+22 | |
| 2016-05-25 | Remove ExplicitSelf from AST | Vadim Petrochenkov | -217/+124 | |
| 2016-05-25 | Auto merge of #33713 - LeoTestard:macro-rules-invalid-lhs, r=pnkfelix | bors | -45/+59 | |
| Make sure that macros that didn't pass LHS checking are not expanded. This avoid duplicate errors for things like invalid fragment specifiers, or parsing errors for ambiguous macros. | ||||
| 2016-05-24 | Apply visit_path to import prefixes by default | Vadim Petrochenkov | -11/+4 | |
| 2016-05-24 | Back to single line between errors. Add header space to secondary files | Jonathan Turner | -1/+26 | |
| 2016-05-24 | syntax: Make codemap::get_filemap() return an Option | Kamal Marhubi | -3/+3 | |
| This is more idiomatic, putting the caller in charge of whether or not to panic. | ||||
| 2016-05-24 | syntax/hir: give loop labels a span | Georg Brandl | -41/+51 | |
| This makes the "shadowing labels" warning *not* print the entire loop as a span, but only the lifetime. Also makes #31719 go away, but does not fix its root cause (the span of the expanded loop is still wonky, but not used anymore). | ||||
| 2016-05-24 | Add comments and fix a nit | Jeffrey Seyfried | -1/+9 | |
| 2016-05-24 | Avoid iterating two times over the list of LHSes. | Leo Testard | -5/+4 | |
| 2016-05-24 | Make sure that macros that didn't pass LHS checking are not expanded. | Leo Testard | -41/+56 | |
| This avoids duplicate errors for things like invalid fragment specifiers, or parsing errors for ambiguous macros. Fixes #29231. | ||||
| 2016-05-24 | Remove unused field and argument | Seo Sanghyeon | -6/+2 | |
| 2016-05-23 | Update error format for readability. Add spacing header<->snippet and ↵ | Jonathan Turner | -1/+8 | |
| another line between errors | ||||
| 2016-05-24 | Do not inject test harness for --cfg test | Seo Sanghyeon | -5/+1 | |
| 2016-05-21 | Move `placement_in_syntax` gated feature checking from expansion to the ↵ | Jeffrey Seyfried | -16/+3 | |
| post-expansion visitor | ||||
| 2016-05-21 | Refactor away `check_attributes` | Jeffrey Seyfried | -11/+7 | |
| 2016-05-21 | Refactor away `expand_item_mac` | Jeffrey Seyfried | -159/+85 | |
| 2016-05-21 | Refactor out `mac_result` in `expand_mac_invoc` | Jeffrey Seyfried | -54/+53 | |
| 2016-05-21 | Check attributes in `expand_mac_invoc` | Jeffrey Seyfried | -22/+12 | |
| 2016-05-21 | Use `expand_mac_invoc` in `expand_pat` | Jeffrey Seyfried | -75/+3 | |
| 2016-05-21 | Re-fold expanded items in `expand_mac_invoc` | Jeffrey Seyfried | -63/+13 | |
| 2016-05-21 | Improve diagnostics | Jeffrey Seyfried | -5/+3 | |
| 2016-05-21 | Introduce `MacroGenerable` trait | Jeffrey Seyfried | -53/+46 | |
