about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
AgeCommit message (Collapse)AuthorLines
2019-10-26libsyntax: Document ast moduleIgor Aleksanov-26/+112
Apply review suggestions Remove links in the module docs Flatten imports Apply review suggestions Remove useless comments Fix nits
2019-10-22Readd some PartialEq and Hash derives used by Clippyflip1995-3/+6
2019-10-21Remove many unnecessary trait derivations.Nicholas Nethercote-3/+3
2019-10-16ast: use more direct importsMazdak Farrokhzad-9/+8
2019-10-13ast: remove implicit pprust dependency via Display.Mazdak Farrokhzad-7/+0
Instead just use `pprust::path_to_string(..)` where needed. This has two benefits: a) The AST definition is now independent of printing it. (Therefore we get closer to extracting a data-crate.) b) Debugging should be easier as program flow is clearer.
2019-10-13ast: don't use pprust in DebugMazdak Farrokhzad-41/+6
2019-10-01Address review commentsVadim Petrochenkov-0/+1
2019-09-30syntax: Split `ast::Attribute` into container and inner partsVadim Petrochenkov-2/+12
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-4/+3
2019-09-28syntax: don't keep a redundant c_variadic flag in the AST.Eduard-Mihai Burtescu-1/+6
2019-09-26Rename `MetaItem.node` to `MetaItem.kind`varkor-1/+1
2019-09-26Rename `ForeignItem.node` to `ForeignItem.kind`varkor-1/+1
2019-09-26Rename `Item.node` to `Item.kind`varkor-1/+1
2019-09-26Rename `Stmt.node` to `Stmt.kind`varkor-6/+6
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-8/+8
2019-09-26Rename `TraitItem.node` to `TraitItem.kind`varkor-1/+1
2019-09-26Rename `Lit.node` to `Lit.kind`varkor-1/+1
2019-09-26Rename `ImplItem.node` to `ImplItem.kind`varkor-1/+1
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-7/+7
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-7/+7
For both `ast::Expr` and `hir::Expr`.
2019-09-15Print visibility of `macro` itemsMatthew Jasper-1/+1
2019-09-09Resolve attributes in several placesCaio-1/+9
Arm, Field, FieldPat, GenericParam, Param, StructField and Variant
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: libsyntaxAlexander Regueiro-26/+26
2019-09-05or-patterns: address review comments.Mazdak Farrokhzad-4/+1
2019-09-05or-patterns: syntax: simplify `Arm.pats` and `ExprKind::Let.0`.Mazdak Farrokhzad-3/+3
2019-09-05resolve: already-bound-check: account for or-patterns.Mazdak Farrokhzad-9/+11
Also document `ast::Pat::walk`.
2019-08-27Cleanup: Consistently use `Param` instead of `Arg` #62426Kevin Per-11/+11
2019-08-18Auto merge of #61708 - dlrobertson:or-patterns-0, r=centrilbors-3/+8
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-17initial implementation of or-pattern parsingDan Robertson-0/+1
Initial implementation of parsing or-patterns e.g., `Some(Foo | Bar)`. This is a partial implementation of RFC 2535.
2019-08-17Initial implementation of or patternsvarkor-3/+7
2019-08-17Remove SyntaxContext from {ast, hir}::{GlobalAsm, InlineAsm}Matthew Jasper-3/+1
We now store it in the `Span` of the expression or item.
2019-08-15Remove `Spanned` from `{ast,hir}::FieldPat`Vadim Petrochenkov-2/+3
2019-08-15Remove `Spanned` from `ast::Mac`Vadim Petrochenkov-4/+3
2019-08-15Remove `Spanned` from `mk_name_value_item_str` and `expr_to_spanned_string`Vadim Petrochenkov-2/+0
2019-08-14Rollup merge of #63543 - c410-f3r:variant, r=c410-f3rMazdak Farrokhzad-3/+3
Merge Variant and Variant_ Extracted from #63468.
2019-08-14Merge Variant and Variant_Caio-3/+3
2019-08-13Add NodeId for Arm, Field and FieldPatCaio-0/+3
2019-08-05Remove leftover AwaitOriginMark Rousskov-9/+0
This was missed in PR #62293.
2019-08-04Auto merge of #63213 - varkor:itemkind-tyalias, r=Centrilbors-3/+3
Rename `ItemKind::Ty` to `ItemKind::TyAlias` The current name is not entirely clear without context and `TyAlias` is consistent with `ItemKind::TraitAlias`.
2019-08-04Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias`varkor-1/+1
2019-08-04Rename `ItemKind::Ty` to `ItemKind::TyAlias`varkor-2/+2
2019-08-04Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkovbors-0/+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-03Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkovMazdak Farrokhzad-3/+13
Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov
2019-08-03Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centrilbors-6/+8
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-02Replace "existential" by "opaque"varkor-6/+8
2019-08-02libsyntax: Unconfigure tests during normal buildVadim Petrochenkov-12/+3
2019-07-31Decode AttrId via mk_attr_idMark Rousskov-3/+13
2019-07-30Point at type ascription before macro invocation on expansion parse errorEsteban Küber-0/+1
2019-07-30Unsupport the await!(..) macro.Mazdak Farrokhzad-1/+1
2019-07-28Rollup merge of #61856 - c410-f3r:attrs-fn, r=matthewjasperMazdak Farrokhzad-0/+2
Lint attributes on function arguments Fixes #61238. cc #60406