| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-11-07 | syntax::parser::token -> syntax::token | Mazdak Farrokhzad | -1/+1 | |
| 2019-11-06 | Make doc comments cheaper with `AttrKind`. | Nicholas Nethercote | -4/+8 | |
| `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-10-14 | Remove the `Option` in `TokenStream`. | Nicholas Nethercote | -4/+2 | |
| 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 | -1/+4 | |
| 2019-09-30 | syntax: Split `ast::Attribute` into container and inner parts | Vadim Petrochenkov | -1/+2 | |
| 2019-09-28 | syntax: don't keep a redundant c_variadic flag in the AST. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-09-26 | Rename `MetaItem.node` to `MetaItem.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `ForeignItem.node` to `ForeignItem.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Item.node` to `Item.kind` | varkor | -5/+5 | |
| 2019-09-26 | Rename `Stmt.node` to `Stmt.kind` | varkor | -5/+5 | |
| 2019-09-26 | Rename `Ty.node` to `Ty.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `TraitItem.node` to `TraitItem.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `ImplItem.node` to `ImplItem.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Pat.node` to `Pat.kind` | varkor | -2/+2 | |
| 2019-09-26 | Rename `Expr.node` to `Expr.kind` | varkor | -2/+2 | |
| For both `ast::Expr` and `hir::Expr`. | ||||
| 2019-09-09 | Resolve attributes in several places | Caio | -6/+7 | |
| Arm, Field, FieldPat, GenericParam, Param, StructField and Variant | ||||
| 2019-09-07 | Aggregation of cosmetic changes made during work on REPL PRs: libsyntax | Alexander Regueiro | -14/+14 | |
| 2019-09-05 | or-patterns: syntax: adjust `visit` and `mut_visit`. | Mazdak Farrokhzad | -8/+5 | |
| 2019-08-27 | Cleanup: Consistently use `Param` instead of `Arg` #62426 | Kevin Per | -6/+6 | |
| 2019-08-24 | Modifies how Arg, Arm, Field, FieldPattern and Variant are visited | Caio | -49/+77 | |
| Part of the necessary work to accomplish #63468. | ||||
| 2019-08-18 | Auto merge of #61708 - dlrobertson:or-patterns-0, r=centril | bors | -2/+3 | |
| Initial implementation of or-patterns An incomplete implementation of or-patterns (e.g. `Some(0 | 1)` as a pattern). This patch set aims to implement initial parsing of `or-patterns`. Related to: #54883 CC @alexreg @varkor r? @Centril | ||||
| 2019-08-17 | Initial implementation of or patterns | varkor | -2/+3 | |
| 2019-08-17 | Remove SyntaxContext from {ast, hir}::{GlobalAsm, InlineAsm} | Matthew Jasper | -1/+1 | |
| We now store it in the `Span` of the expression or item. | ||||
| 2019-08-15 | Remove `Spanned` from `{ast,hir}::FieldPat` | Vadim Petrochenkov | -4/+1 | |
| 2019-08-15 | Remove `Spanned` from `ast::Mac` | Vadim Petrochenkov | -2/+2 | |
| 2019-08-14 | Rollup merge of #63543 - c410-f3r:variant, r=c410-f3r | Mazdak Farrokhzad | -1/+1 | |
| Merge Variant and Variant_ Extracted from #63468. | ||||
| 2019-08-14 | Merge Variant and Variant_ | Caio | -1/+1 | |
| 2019-08-13 | Add NodeId for Arm, Field and FieldPat | Caio | -3/+9 | |
| 2019-08-04 | Auto merge of #63213 - varkor:itemkind-tyalias, r=Centril | bors | -2/+2 | |
| Rename `ItemKind::Ty` to `ItemKind::TyAlias` The current name is not entirely clear without context and `TyAlias` is consistent with `ItemKind::TraitAlias`. | ||||
| 2019-08-04 | Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias` | varkor | -1/+1 | |
| 2019-08-04 | Rename `ItemKind::Ty` to `ItemKind::TyAlias` | varkor | -1/+1 | |
| 2019-08-04 | Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkov | bors | -1/+1 | |
| Point at type ascription before macro invocation on expansion parse error Fix https://github.com/rust-lang/rust/issues/47666. Follow up to https://github.com/rust-lang/rust/pull/62791. r? @petrochenkov | ||||
| 2019-08-03 | Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centril | bors | -2/+2 | |
| Change opaque type syntax from `existential type` to type alias `impl Trait` This implements a new feature gate `type_alias_impl_trait` (this is slightly different from the originally proposed feature name, but matches what has been used in discussion since), deprecating the old `existential_types` feature. The syntax for opaque types has been changed. In addition, the "existential" terminology has been replaced with "opaque", as per previous discussion and the RFC. This makes partial progress towards implementing https://github.com/rust-lang/rust/issues/63063. r? @Centril | ||||
| 2019-08-02 | Replace "existential" by "opaque" | varkor | -2/+2 | |
| 2019-08-02 | libsyntax: Unconfigure tests during normal build | Vadim Petrochenkov | -74/+3 | |
| 2019-07-30 | Point at type ascription before macro invocation on expansion parse error | Esteban Küber | -1/+1 | |
| 2019-07-30 | Unsupport the await!(..) macro. | Mazdak Farrokhzad | -1/+1 | |
| 2019-07-28 | Rollup merge of #61856 - c410-f3r:attrs-fn, r=matthewjasper | Mazdak Farrokhzad | -1/+2 | |
| Lint attributes on function arguments Fixes #61238. cc #60406 | ||||
| 2019-07-28 | Adjust 'ast::PatKind::{TupleStruct,Tuple,Slice}'. | Mazdak Farrokhzad | -8/+4 | |
| 2019-07-28 | Add 'ast::PatKind::Rest'. | Mazdak Farrokhzad | -1/+1 | |
| 2019-07-27 | Lint attributes on function arguments | Caio | -1/+2 | |
| 2019-07-15 | pprust: Fix formatting regressions from the previous commits | Vadim Petrochenkov | -1/+1 | |
| Fix some remaining cases of bad formatting Update some failing tests | ||||
| 2019-06-29 | Remove io::Result from syntax::print | Mark Rousskov | -2/+1 | |
| Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-06-24 | Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov | bors | -11/+1 | |
| Remove `ast::Guard` With the introduction of `ast::ExprKind::Let` in https://github.com/rust-lang/rust/pull/60861, the `ast::Guard` structure is now redundant in terms of representing [`if let` guards](https://github.com/rust-lang/rust/issues/51114) in AST since it can be represented by `ExprKind::Let` syntactically. Therefore, we remove `ast::Guard` here. However, we keep `hir::Guard` because the semantic representation is a different matter and this story is more unclear right now (might involve `goto 'arm` in HIR or something...). r? @petrochenkov | ||||
| 2019-06-23 | Remove redundant syntax::ast::Guard. | Mazdak Farrokhzad | -11/+1 | |
| 2019-06-23 | let_chains: Remove ast::ExprKind::{IfLet, WhileLet} from visitors and ↵ | Mazdak Farrokhzad | -12/+4 | |
| introduce ::Let. | ||||
| 2019-06-18 | Remove the HirId/NodeId from where clauses | Matthew Jasper | -2/+1 | |
| Also give them a span in the HIR | ||||
| 2019-06-09 | Allow attributes in formal function parameters | Caio | -1/+2 | |
| 2019-06-07 | syntax: Treat error literals in more principled way | Vadim Petrochenkov | -2/+1 | |
| 2019-06-06 | Address review comments | Vadim Petrochenkov | -0/+2 | |
