about summary refs log tree commit diff
path: root/src/libsyntax/parse
AgeCommit message (Collapse)AuthorLines
2019-08-11parser: move parse_ident_or_underscore into item.rsMazdak Farrokhzad-11/+11
2019-08-11parser: split into {ty, path}.rsMazdak Farrokhzad-899/+930
2019-08-11parser: split into {item,module}.rsMazdak Farrokhzad-2218/+2251
2019-08-11parser: split into pat.rsMazdak Farrokhzad-633/+642
2019-08-11parser: split into expr.rsMazdak Farrokhzad-1667/+1712
2019-08-09Recover parser from `foo(_, _)`Esteban Küber-20/+50
2019-08-05add unknown tokenAleksey Kladov-3/+5
2019-08-05remove special code path for unknown tokensAleksey Kladov-60/+13
2019-08-04Auto merge of #63213 - varkor:itemkind-tyalias, r=Centrilbors-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-04Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias`varkor-1/+1
2019-08-04Rename `ItemKind::Ty` to `ItemKind::TyAlias`varkor-1/+1
2019-08-04Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkovbors-6/+36
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-11/+4
Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov
2019-08-03Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centrilbors-30/+13
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-02Auto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrumbors-602/+651
Unconfigure compiler unit test files during normal build I haven't touched libstd though, it had a lot of tests and I'm not sure the people maintaining it want this. Closes https://github.com/rust-lang/rust/issues/61097 r? @Mark-Simulacrum
2019-08-02Rollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebankMazdak Farrokhzad-1/+9
Fix ICE in #63135 Closes #63135. r?@estebank
2019-08-02Rollup merge of #63189 - waywardmonkeys:doc-improvements, r=CentrilMazdak Farrokhzad-1/+1
Doc improvements Miscellaneous documentation fixes.
2019-08-02Replace "existential" by "opaque"varkor-12/+6
2019-08-02Switch existential_type to type_alias_impl_traitvarkor-18/+7
2019-08-02libsyntax: Unconfigure tests during normal buildVadim Petrochenkov-602/+651
2019-08-01Fix ICE in #63135Michael Lamparski-1/+9
2019-08-02Fix typos in doc comments.Bruce Mitchener-1/+1
2019-08-01Rollup merge of #63170 - matklad:cleanup-fields, r=petrochenkovPietro Albini-12/+11
cleanup StringReader fields reduce visibility and replace `Lrc<SourceFile>` with `start_pos`: the single bit we actually *need* from the file. r? @petrochenkov
2019-08-01Rollup merge of #63122 - Centril:fix-63115, r=petrochenkovPietro Albini-6/+16
Account for `maybe_whole_expr` in range patterns Fixes https://github.com/rust-lang/rust/issues/63115 (fallout from https://github.com/rust-lang/rust/pull/62550). r? @petrochenkov
2019-07-31Address review comments.Mazdak Farrokhzad-8/+4
2019-07-31cleanup StringReader fieldsAleksey Kladov-12/+11
2019-07-31Replace a few Attribute constructors with mk_attrMark Rousskov-9/+2
2019-07-31Remove AttrId from Attribute constructorsMark Rousskov-2/+2
2019-07-30Point at type ascription before macro invocation on expansion parse errorEsteban Küber-6/+36
2019-07-30Unsupport the await!(..) macro.Mazdak Farrokhzad-39/+30
2019-07-30Rollup merge of #62928 - Centril:recover-parens-around-for-head, r=estebankMazdak Farrokhzad-162/+217
Syntax: Recover on `for ( $pat in $expr ) $block` Fixes #62724 by adding some recovery: ``` error: unexpected closing `)` --> $DIR/recover-for-loop-parens-around-head.rs:10:23 | LL | for ( elem in vec ) { | --------------^ | | | opening `(` | help: remove parenthesis in `for` loop: `elem in vec` ``` The last 2 commits are drive-by cleanups. r? @estebank
2019-07-30Account for maybe_whole_expr in range patterns.Mazdak Farrokhzad-0/+14
2019-07-28Rollup merge of #61856 - c410-f3r:attrs-fn, r=matthewjasperMazdak Farrokhzad-2/+8
Lint attributes on function arguments Fixes #61238. cc #60406
2019-07-28Add 'span_to_snippet' shortcut.Mazdak Farrokhzad-16/+13
2019-07-28Use chaining for diagnosics in parser.Mazdak Farrokhzad-152/+155
2019-07-28Recover 'for ( $pat in $expr ) $block'.Mazdak Farrokhzad-0/+55
2019-07-28Rollup merge of #62550 - Centril:rest-patterns, r=petrochenkovMazdak Farrokhzad-290/+235
Implement RFC 2707 + Parser recovery for range patterns Implement https://github.com/rust-lang/rfcs/pull/2707. - Add a new basic syntactic pattern form `ast::PatKind::Rest` (parsed as `..` or `DOTDOT`) and simplify `ast::PatKind::{Slice, Tuple, TupleStruct}` as a result. - Lower `ast::PatKind::Rest` in combination with the aforementioned `PatKind` variants as well as `PatKind::Ident`. The HIR remains unchanged for now (may be advisable to make slight adjustments later). - Refactor `parser.rs` wrt. parsing sequences and lists of things in the process. - Add parser recovery for range patterns of form `X..`, `X..=`, `X...`, `..Y`, `..=Y`, and `...Y`. This should make it easy to actually support these patterns semantically later if we so desire. cc https://github.com/rust-lang/rust/issues/62254 r? @petrochenkov
2019-07-28Address comments in lowering + parsing.Mazdak Farrokhzad-4/+7
2019-07-28Recover on 'X..' / 'X..=' / 'X...' range patterns.Mazdak Farrokhzad-21/+43
2019-07-28Recover on '..X' / '..=X' / '...X' range patterns.Mazdak Farrokhzad-6/+46
2019-07-28Adjust parsing of Slice, Tuple, TupleStruct patterns.Mazdak Farrokhzad-127/+26
2019-07-28Cleanup using the new parse_*_seq methods.Mazdak Farrokhzad-96/+60
2019-07-28Add more parse_*_seq methods for code reuse.Mazdak Farrokhzad-0/+24
2019-07-28Cleanup parse_seq_* methods + record trailing separators.Mazdak Farrokhzad-42/+35
2019-07-28Rollup merge of #63038 - eupn:outer-attribute-diag, r=estebankMazdak Farrokhzad-16/+45
Make more informative error on outer attribute after inner Fixes #61218. ?r @estebank
2019-07-27Treat doc comments separatelyEvgenii P-8/+20
2019-07-27syntax_ext: `proc_macro_decls` -> `proc_macro_harness`Vadim Petrochenkov-1/+2
Few other minor renamings for consistency. Remove one unused dependency from `rustc_passes`. Fix libsyntax tests. Fix rebase.
2019-07-27Move standard library injection into libsyntax_extVadim Petrochenkov-1/+4
2019-07-27Lint attributes on function argumentsCaio-2/+8
2019-07-27Make more informative error on outer attr after innerEvgenii P-15/+32