| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-29 | Move directory `libsyntax` -> `librustc_ast` | Vadim Petrochenkov | -727/+0 | |
| 2020-02-27 | don't use .into() to convert types into identical types. | Matthias Krüger | -1/+1 | |
| example: let s: String = format!("hello").into(); | ||||
| 2020-02-24 | ast: add `Defaultness` to `Item`, making `AssocItem` an alias. | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-01 | 1. move allow_internal_unstable to rustc_attr | Mazdak Farrokhzad | -24/+0 | |
| 2. as a result, drop rustc_errors dep from syntax | ||||
| 2020-02-01 | Move builtin attribute logic to new rustc_attr crate. | Mazdak Farrokhzad | -7/+0 | |
| For now, this is all the crate contains, but more attribute logic & types will be moved there over time. | ||||
| 2020-02-01 | syntax: simplify HasAttrs code | Mazdak Farrokhzad | -21/+11 | |
| 2020-02-01 | syntax: move GLOBALS to attr module | Mazdak Farrokhzad | -3/+34 | |
| 2020-01-10 | nix syntax::errors & prefer rustc_errors over errors | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-02 | Normalize `syntax::symbol` imports. | Mazdak Farrokhzad | -2/+2 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -1/+1 | |
| 2019-12-28 | doc comments: Less attribute mimicking | Vadim Petrochenkov | -8/+16 | |
| 2019-12-22 | Format the world | Mark Rousskov | -109/+85 | |
| 2019-12-20 | introduce 'type AttrVec' | Mazdak Farrokhzad | -3/+2 | |
| 2019-12-12 | Unify `{Impl,Trait}Item` as `AssocItem`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-02 | syntax: Optimize conversion `AttrItem` -> `MetaItem` by avoiding `outer_tokens`. | Vadim Petrochenkov | -29/+44 | |
| 2019-12-02 | syntax: Use `ast::MacArgs` for attributes | Vadim Petrochenkov | -15/+27 | |
| 2019-11-10 | move syntax::parse -> librustc_parse | Mazdak Farrokhzad | -1/+1 | |
| also move MACRO_ARGUMENTS -> librustc_parse | ||||
| 2019-11-10 | move config.rs to libsyntax_expand | Mazdak Farrokhzad | -1/+5 | |
| 2019-11-09 | move attr meta grammar to parse::validate_atr + ast_validation | Mazdak Farrokhzad | -19/+0 | |
| 2019-11-07 | syntax::attr: remove usage of lexer | Mazdak Farrokhzad | -3/+2 | |
| 2019-11-07 | move PResult to librustc_errors | Mazdak Farrokhzad | -1/+2 | |
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -31/+79 | |
| `AttrKind` is a new type with two variants, `Normal` and `DocComment`. It's a big performance win (over 10% in some cases) because `DocComment` lets doc comments (which are common) be represented very cheaply. `Attribute` gets some new helper methods to ease the transition: - `has_name()`: check if the attribute name matches a single `Symbol`; for `DocComment` variants it succeeds if the symbol is `sym::doc`. - `is_doc_comment()`: check if it has a `DocComment` kind. - `{get,unwrap}_normal_item()`: extract the item from a `Normal` variant; panic otherwise. Fixes #60935. | ||||
| 2019-11-06 | Remove unnecessary `Deref` impl for `Attribute`. | Nicholas Nethercote | -5/+5 | |
| This kind of thing just makes the code harder to read. | ||||
| 2019-10-27 | syntax/attr: reduce reliance on parser | Mazdak Farrokhzad | -27/+2 | |
| 2019-10-25 | move Attribute::with_desugared_doc to librustdoc | Mazdak Farrokhzad | -27/+2 | |
| 2019-10-18 | Change `MetaItem::tokens()` to `MetaItem::token_trees_and_joints()`. | Nicholas Nethercote | -17/+26 | |
| Likewise for `NestedMetaItem::tokens()`. Also, add `MetaItemKind::token_trees_and_joints()`, which `MetaItemKind::tokens()` now calls. This avoids some unnecessary `TokenTree` to `TokenStream` conversions, and removes the need for the clumsy `TokenStream::append_to_tree_and_joint_vec()`. | ||||
| 2019-10-18 | Change `Lit::tokens()` to `Lit::token_tree()`. | Nicholas Nethercote | -4/+5 | |
| Because most of the call sites have an easier time working with a `TokenTree` instead of a `TokenStream`. | ||||
| 2019-10-16 | move syntax::ext to new crate syntax_expand | Mazdak Farrokhzad | -2/+2 | |
| 2019-10-16 | syntax: reduce visibilities | Mazdak Farrokhzad | -3/+3 | |
| 2019-10-16 | syntax: extract parse_cfg_attr | Mazdak Farrokhzad | -1/+0 | |
| 2019-10-16 | syntax: extract parse_derive_paths | Mazdak Farrokhzad | -15/+3 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-14 | Remove the `Option` in `TokenStream`. | Nicholas Nethercote | -1/+1 | |
| It means an allocation is required to create an empty `TokenStream`, but all other operations are simpler and marginally faster due to not having to check for `None`. Overall it simplifies the code for a negligible performance effect. The commit also removes `TokenStream::empty` by implementing `Default`, which is now possible. | ||||
| 2019-09-30 | syntax: Support modern attribute syntax in the `meta` matcher | Vadim Petrochenkov | -5/+11 | |
| 2019-09-30 | syntax: Split `ast::Attribute` into container and inner parts | Vadim Petrochenkov | -7/+7 | |
| 2019-09-26 | Rename `MetaItem.node` to `MetaItem.kind` | varkor | -18/+18 | |
| 2019-09-26 | Rename `Stmt.node` to `Stmt.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Lit.node` to `Lit.kind` | varkor | -1/+1 | |
| 2019-09-24 | Stabilize `str::len`, `[T]::len`, `is_empty` and `str::as_bytes` as const fn | Oliver Scherer | -0/+24 | |
| 2019-09-07 | Aggregation of cosmetic changes made during work on REPL PRs: libsyntax | Alexander Regueiro | -21/+22 | |
| 2019-09-06 | Move injection of attributes from command line to `libsyntax_ext` | Vadim Petrochenkov | -46/+13 | |
| 2019-08-27 | Cleanup: Consistently use `Param` instead of `Arg` #62426 | Kevin Per | -1/+1 | |
| 2019-08-15 | `Ident::with_empty_ctxt` -> `Ident::with_dummy_span` | Vadim Petrochenkov | -2/+2 | |
| `Ident` has had a full span rather than just a `SyntaxContext` for a long time now. | ||||
| 2019-08-15 | Remove `Spanned` from `mk_name_value_item_str` and `expr_to_spanned_string` | Vadim Petrochenkov | -5/+7 | |
| 2019-08-14 | Merge Variant and Variant_ | Caio | -1/+1 | |
| 2019-08-05 | Make mk_attr_id private to libsyntax | Mark Rousskov | -1/+1 | |
| 2019-08-05 | Drop explicit span argument from mk_name_value_item | Mark Rousskov | -2/+3 | |
| 2019-08-05 | Drop span argument from mk_list_item | Mark Rousskov | -2/+2 | |
