about summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2019-08-04Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias`varkor-6/+6
2019-08-04Rename `ItemKind::Ty` to `ItemKind::TyAlias`varkor-7/+7
2019-08-04Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkovbors-9/+49
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-03Move special treatment of `derive(Copy, PartialEq, Eq)` from expansion ↵Vadim Petrochenkov-56/+26
infrastructure to elsewhere
2019-08-03Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkovMazdak Farrokhzad-456/+183
Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov
2019-08-03Rollup merge of #62954 - ia0:fix_typo_span, r=CentrilMazdak Farrokhzad-2/+2
Fix typo in Delimited::open_tt
2019-08-03Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centrilbors-54/+46
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-03Rollup merge of #63212 - Centril:param-attrs-pretty, r=davidtwcoMazdak Farrokhzad-10/+9
Pretty print attributes in `print_arg` Fixes https://github.com/rust-lang/rust/issues/63210. cc https://github.com/rust-lang/rust/issues/60406 r? @petrochenkov
2019-08-02Auto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrumbors-1322/+1293
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 #63198 - rbartlensky:fix-macro-trailing-comma, r=petrochenkovMazdak Farrokhzad-1/+4
Allow trailing comma in macro 2.0 declarations. This should hopefully close #63102.
2019-08-02Rollup merge of #63189 - waywardmonkeys:doc-improvements, r=CentrilMazdak Farrokhzad-1/+1
Doc improvements Miscellaneous documentation fixes.
2019-08-02Print outer attributes on formal params.Mazdak Farrokhzad-0/+3
2019-08-02Cleanup 'print_generic_params'.Mazdak Farrokhzad-10/+6
2019-08-02Replace "existential" by "opaque"varkor-31/+31
2019-08-02Switch existential_type to type_alias_impl_traitvarkor-23/+15
2019-08-02Remove some more `cfg(test)`sVadim Petrochenkov-20/+16
2019-08-02libsyntax: Unconfigure tests during normal buildVadim Petrochenkov-1302/+1277
2019-08-01Fix ICE in #63135Michael Lamparski-1/+9
2019-08-01Allow trailing comma in macro 2.0 declarations.Robert Bartlensky-1/+4
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-31Decode AttrId via mk_attr_idMark Rousskov-3/+13
2019-07-31Use Ident::new over setting span position via builderMark Rousskov-4/+4
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-402/+130
2019-07-31Replace a few Attribute constructors with mk_attrMark Rousskov-9/+2
2019-07-31Remove span argument from mk_attr_{inner,outer}Mark Rousskov-7/+7
Always the same as the passed MetaItem
2019-07-31Remove Span argument from ExtCtxt::attributeMark Rousskov-6/+6
MetaItem.span was always equivalent
2019-07-31Remove AttrId from Attribute constructorsMark Rousskov-23/+29
2019-07-31Unify spanned and non-spanned Attribute ctorsMark Rousskov-17/+7
There is no difference in the code/arguments, so go with the shorter name throughout the code.
2019-07-30Rollup merge of #63095 - Centril:incomplete-features-lint, r=varkorMazdak Farrokhzad-13/+4
Turn `INCOMPLETE_FEATURES` into lint We do this because it is annoying to see the warning when building rustc and because this is better from a "separation of concerns" POV. The drawback to this change is that this will respect `--cap-lints`. Also note that this is not a buffered lint so if there are fatal parser errors then the lint will not trigger. r? @varkor
2019-07-30Point at type ascription before macro invocation on expansion parse errorEsteban Küber-9/+49
2019-07-30Pacify tidy, the merciless.Mazdak Farrokhzad-1/+1
2019-07-30Unsupport the await!(..) macro.Mazdak Farrokhzad-71/+41
2019-07-30Turn INCOMPLETE_FEATURES into a lint.Mazdak Farrokhzad-13/+4
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-29Rollup merge of #63092 - Centril:update-impl-trait-gates, r=varkorMazdak Farrokhzad-2/+2
Update `impl Trait` gate issues cc https://github.com/rust-lang/rust/issues/63065 cc https://github.com/rust-lang/rust/issues/63063 r? @varkor cc @alexreg
2019-07-29Rollup merge of #63077 - petrochenkov:nolangfeat, r=petrochenkovMazdak Farrokhzad-18/+0
cleanup: Remove some language features related to built-in macros They are now library features. Cleanup after https://github.com/rust-lang/rust/pull/62086. The unstable book files are moved because tidy complained.
2019-07-29Update existential_type + impl_trait_in_bindings issue numbers.Mazdak Farrokhzad-2/+2
2019-07-28Auto merge of #63090 - Centril:rollup-xnjwm2h, r=Centrilbors-8/+23
Rollup of 8 pull requests Successful merges: - #61856 (Lint attributes on function arguments) - #62360 (Document that ManuallyDrop::drop should not called more than once) - #62392 (Update minifier-rs version) - #62871 (Explicit error message for async recursion.) - #62995 (Avoid ICE when suggestion span is at Eof) - #63053 (SystemTime docs: recommend Instant for elapsed time) - #63081 (tidy: Cleanup the directory whitelist) - #63088 (Remove anonymous_parameters from unrelated test) Failed merges: r? @ghost
2019-07-28Rollup merge of #61856 - c410-f3r:attrs-fn, r=matthewjasperMazdak Farrokhzad-8/+23
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-28Deny `unused_lifetimes` through rustbuildVadim Petrochenkov-2/+0
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-6/+1
rustbuild Remove some random unnecessary lint `allow`s