| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-06-18 | syntax: Introduce `default`/`with_unstable` constructors for `ExpnInfo` | Vadim Petrochenkov | -11/+4 | |
| 2019-06-18 | syntax: Factor out common fields from `SyntaxExtension` variants | Vadim Petrochenkov | -4/+3 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Ident` | Vadim Petrochenkov | -2/+2 | |
| 2019-06-05 | Aggregation of drive-by cosmetic changes. | Alexander Regueiro | -4/+3 | |
| 2019-05-27 | Avoid unnecessary internings. | Nicholas Nethercote | -3/+3 | |
| Most involving `Symbol::intern` on string literals. | ||||
| 2019-05-22 | Simplify use of keyword symbols | Vadim Petrochenkov | -2/+2 | |
| 2019-05-21 | Move `edition` outside the hygiene lock and avoid accessing it | John Kåre Alsaker | -2/+2 | |
| 2019-05-20 | Remove `Symbol::gensym()`. | Nicholas Nethercote | -1/+1 | |
| 2019-05-17 | Avoid unnecessary interning in `Ident::from_str()` calls. | Nicholas Nethercote | -3/+3 | |
| A lot of these static symbols are pre-interned. | ||||
| 2019-05-13 | Rollup merge of #60562 - iliekturtles:proc-macro-missing-docs, r=alexcrichton | Mazdak Farrokhzad | -1/+6 | |
| Add #[doc(hidden)] attribute on compiler generated module. Resolves unavoidable `missing_docs` warning/error on proc-macro crates. Resolves #42008. Changes not yet tested locally, however I wanted to submit first since `rustc` takes forever to compile. | ||||
| 2019-05-13 | Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions. | Nicholas Nethercote | -7/+11 | |
| 2019-05-11 | Add #[doc(hidden)] attribute on compiler generated proc-macro module. | Mike Boutin | -1/+6 | |
| Stops unavoidable `missing_docs` warning/error on proc-macro crates. Resolves #42008. | ||||
| 2019-04-15 | Make check_name generic | John Kåre Alsaker | -1/+1 | |
| 2019-03-27 | Visit path in `walk_mac` | varkor | -1/+1 | |
| 2019-03-16 | Refactor away `NestedMetaItemKind` | Vadim Petrochenkov | -7/+7 | |
| Remove methods `Attribute::span` and `MetaItem::span` duplicating public fields | ||||
| 2019-03-16 | syntax: Introduce `Ident::can_be_raw` | Vadim Petrochenkov | -2/+2 | |
| 2019-03-16 | syntax_ext: Validate `#[proc_macro_derive]` input better | Vadim Petrochenkov | -4/+14 | |
| Tweak some error wording | ||||
| 2019-03-16 | syntax: Do not accidentally treat multi-segment meta-items as single-segment | Vadim Petrochenkov | -19/+24 | |
| 2019-02-13 | Rename rustc_errors dependency in rust 2018 crates | Taiki Endo | -1/+0 | |
| 2019-02-11 | Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocs | Oliver Scherer | -2/+2 | |
| 2019-02-11 | Require a list of features to allow in `allow_internal_unstable` | Oliver Scherer | -1/+4 | |
| 2019-02-07 | Rollup merge of #58133 - taiki-e:libsyntax_ext-2018, r=Centril | kennytm | -4/+3 | |
| libsyntax_ext => 2018 Transitions `libsyntax_ext` to Rust 2018; cc #58099 r? @Centril | ||||
| 2019-02-06 | Overhaul `syntax::fold::Folder`. | Nicholas Nethercote | -2/+2 | |
| This commit changes `syntax::fold::Folder` from a functional style (where most methods take a `T` and produce a new `T`) to a more imperative style (where most methods take and modify a `&mut T`), and renames it `syntax::mut_visit::MutVisitor`. The first benefit is speed. The functional style does not require any reallocations, due to the use of `P::map` and `MoveMap::move_{,flat_}map`. However, every field in the AST must be overwritten; even those fields that are unchanged are overwritten with the same value. This causes a lot of unnecessary memory writes. The imperative style reduces instruction counts by 1--3% across a wide range of workloads, particularly incremental workloads. The second benefit is conciseness; the imperative style is usually more concise. E.g. compare the old functional style: ``` fn fold_abc(&mut self, abc: ABC) { ABC { a: fold_a(abc.a), b: fold_b(abc.b), c: abc.c, } } ``` with the imperative style: ``` fn visit_abc(&mut self, ABC { a, b, c: _ }: &mut ABC) { visit_a(a); visit_b(b); } ``` (The reductions get larger in more complex examples.) Overall, the patch removes over 200 lines of code -- even though the new code has more comments -- and a lot of the remaining lines have fewer characters. Some notes: - The old style used methods called `fold_*`. The new style mostly uses methods called `visit_*`, but there are a few methods that map a `T` to something other than a `T`, which are called `flat_map_*` (`T` maps to multiple `T`s) or `filter_map_*` (`T` maps to 0 or 1 `T`s). - `move_map.rs`/`MoveMap`/`move_map`/`move_flat_map` are renamed `map_in_place.rs`/`MapInPlace`/`map_in_place`/`flat_map_in_place` to reflect their slightly changed signatures. - Although this commit renames the `fold` module as `mut_visit`, it keeps it in the `fold.rs` file, so as not to confuse git. The next commit will rename the file. | ||||
| 2019-02-04 | libsyntax_ext => 2018 | Taiki Endo | -4/+3 | |
| 2019-01-28 | Conditionally skip two passes if their related attributes were not found | John Kåre Alsaker | -2/+5 | |
| 2019-01-13 | Implement basic input validation for built-in attributes | Vadim Petrochenkov | -22/+5 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-04 | cleanup: remove static lifetimes from consts | ljedrz | -2/+1 | |
| 2018-11-30 | proc_macro: introduce a "bridge" between clients (proc macros) and servers ↵ | Eduard-Mihai Burtescu | -0/+441 | |
| (compiler front-ends). | ||||
