| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-02-13 | parser: address review comments | Mazdak Farrokhzad | -1/+1 | |
| 2020-02-13 | parser: move `ban_async_in_2015` to `fn` parsing & improve it. | Mazdak Farrokhzad | -0/+12 | |
| 2020-02-13 | parser: inline `parse_assoc_fn` and friends. | Mazdak Farrokhzad | -42/+21 | |
| 2020-02-13 | parser: solidify `fn` parsing with `parse_fn`. | Mazdak Farrokhzad | -23/+30 | |
| 2020-02-13 | parser: fuse free `fn` parsing together. | Mazdak Farrokhzad | -86/+25 | |
| 2020-02-13 | parser_fn_front_matter: allow `const .. extern` | Mazdak Farrokhzad | -53/+52 | |
| 2020-02-13 | IsAsync -> enum Async { Yes { span: Span, .. }, No } | Mazdak Farrokhzad | -35/+9 | |
| use new span for better diagnostics. | ||||
| 2020-02-13 | Constness -> enum Const { Yes(Span), No } | Mazdak Farrokhzad | -43/+34 | |
| Same idea for `Unsafety` & use new span for better diagnostics. | ||||
| 2020-02-05 | parser: merge `fn` grammars wrt. bodies & headers | Mazdak Farrokhzad | -66/+49 | |
| also refactor `FnKind` and `visit_assoc_item` visitors | ||||
| 2020-02-05 | parse_ty_common: use `enum`s instead of `bool`s. | Mazdak Farrokhzad | -3/+4 | |
| 2020-02-02 | Rollup merge of #68769 - Centril:unwrap, r=petrochenkov | Mazdak Farrokhzad | -4/+3 | |
| parser: avoid re-wrapping NtItem r? @petrochenkov | ||||
| 2020-02-02 | Rollup merge of #68764 - Centril:self-semantic, r=petrochenkov | Mazdak Farrokhzad | -42/+22 | |
| parser: syntactically allow `self` in all `fn` contexts Part of https://github.com/rust-lang/rust/pull/68728. `self` parameters are now *syntactically* allowed as the first parameter irrespective of item context (and in function pointers). Instead, semantic validation (`ast_validation`) is used. r? @petrochenkov | ||||
| 2020-02-02 | parser: avoid re-wrapping NtItem | Mazdak Farrokhzad | -4/+3 | |
| 2020-02-02 | parser: address review comments re. `self`. | Mazdak Farrokhzad | -19/+7 | |
| 2020-02-02 | parser: move restrictions re. `self` to `ast_validation`. | Mazdak Farrokhzad | -34/+26 | |
| 2020-02-01 | syntax::print -> new crate rustc_ast_pretty | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-31 | Auto merge of #68633 - JohnTitor:avoid-ice-in-diagnostics, r=estebank | bors | -17/+23 | |
| Avoid ICE in macro's diagnostics Fixes #68629 r? @estebank | ||||
| 2020-01-30 | Change Applicability to `HasPlaceholders` | Yuki Okushi | -1/+1 | |
| 2020-01-30 | Use `P` for `NtTraitItem`, `NtImplItem`, and `NtForeignItem`. | Nicholas Nethercote | -17/+17 | |
| This commit reduces the size of `Nonterminal` from a whopping 240 bytes to 72 bytes (on x86-64), which gets it below the `memcpy` threshold. It also removes some impedance mismatches with `Annotatable`, which already uses `P` for these variants. | ||||
| 2020-01-29 | Avoid ICE in macro's diagnostics | Yuki Okushi | -17/+23 | |
| 2020-01-21 | Rollup merge of #68140 - ecstatic-morse:const-trait-bound-opt-out, r=oli-obk | Mazdak Farrokhzad | -12/+6 | |
| Implement `?const` opt-out for trait bounds For now, such bounds are treated exactly the same as unprefixed ones in all contexts. [RFC 2632](https://github.com/rust-lang/rfcs/pull/2632) does not specify whether such bounds are forbidden outside of `const` contexts, so they are allowed at the moment. Prior to this PR, the constness of a trait bound/impl was stored in `TraitRef`. Now, the constness of an `impl` is stored in `ast::ItemKind::Impl` and the constness of a bound in `ast::TraitBoundModifer`. Additionally, constness of trait bounds is now stored in an additional field of `ty::Predicate::Trait`, and the combination of the constness of the item along with any `TraitBoundModifier` determines the constness of the bound in accordance with the RFC. Encoding the constness of impls at the `ty` level is left for a later PR. After a discussion in \#wg-grammar on Discord, it was decided that the grammar should not encode the mutual exclusivity of trait bound modifiers. The grammar for trait bound modifiers remains `[?const] [?]`. To encode this, I add a dummy variant to `ast::TraitBoundModifier` that is used when the syntax `?const ?` appears. This variant causes an error in AST validation and disappears during HIR lowering. cc #67794 r? @oli-obk | ||||
| 2020-01-19 | Store `impl const` in `ItemKind::Impl` | Dylan MacKenzie | -12/+4 | |
| 2020-01-19 | Add `constness` field to `ast::ItemKind::Impl` | Dylan MacKenzie | -0/+2 | |
| 2020-01-18 | remove rustc_error_codes deps except in rustc_driver | Mazdak Farrokhzad | -1/+0 | |
| 2020-01-17 | Use named fields for `ast::ItemKind::Impl` | Dylan MacKenzie | -10/+10 | |
| 2020-01-11 | Rollup merge of #68084 - estebank:ice-68000, r=varkor | Mazdak Farrokhzad | -3/+3 | |
| Do not ICE on unicode next point Use `shrink_to_hi` instead of `next_point` and fix `next_point`. Fix #68000, fix #68091, fix #68092. | ||||
| 2020-01-10 | Change `next_point` when `shrink_to_hi` is more appropriate | Esteban Küber | -2/+2 | |
| 2020-01-09 | Do not ICE on unicode next point | Esteban Küber | -1/+1 | |
| Use `shrink_to_hi` instead of `next_point` Fix #68000. | ||||
| 2020-01-10 | Rollup merge of #68073 - Centril:fix-68062, r=estebank | Mazdak Farrokhzad | -1/+1 | |
| expect `fn` after `const unsafe` / `const extern` Fixes #68062 r? @estebank @petrochenkov cc @Aaron1011 | ||||
| 2020-01-10 | Rollup merge of #68071 - estebank:ice-67995, r=Centril | Mazdak Farrokhzad | -1/+5 | |
| Extend support of `_` in type parameters - Account for `impl Trait<_>`. - Provide a reasonable `Span` for empty `Generics` in `impl`s. - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`. - Fix #67995. Follow up to #67597. | ||||
| 2020-01-09 | Reject `const` in inherent impls | Dylan MacKenzie | -3/+12 | |
| 2020-01-09 | Parse `impl const Trait for Ty` syntax | Dylan MacKenzie | -3/+11 | |
| 2020-01-09 | Extend support of `_` in type parameters | Esteban Küber | -1/+5 | |
| - Account for `impl Trait<_>`. - Provide a reasonable `Span` for empty `Generics` in `impl`s. - Account for `fn foo<_>(_: _) {}` to suggest `fn foo<T>(_: T) {}`. - Fix #67995. | ||||
| 2020-01-09 | expect `fn` after `const unsafe` / `const extern` | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-08 | - remove syntax::{span_warn!, span_err!, span_fatal!. struct_err!} | Mazdak Farrokhzad | -2/+1 | |
| - remove syntax::{help!, span_help!, span_note!} - remove unused syntax::{struct_span_fatal, struct_span_err_or_warn!, span_err_or_warn!} - lintify check_for_bindings_named_same_as_variants + conflicting_repr_hints - inline syntax::{struct_span_warn!, diagnostic_used!} - stringify_error_code! -> error_code! & use it more. - find_plugin_registrar: de-fatalize an error - de-fatalize metadata errors - move type_error_struct! to rustc_typeck - struct_span_err! -> rustc_errors | ||||
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -3/+3 | |
| 2019-12-31 | parser::item: remove .fatal calls | Mazdak Farrokhzad | -8/+7 | |
| 2019-12-31 | parser: span_fatal -> struct_span_err | Mazdak Farrokhzad | -3/+1 | |
| 2019-12-31 | de-fatalize some errors | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-31 | parser: call .struct_span_err directly | Mazdak Farrokhzad | -12/+8 | |
| 2019-12-23 | extract parse_not_expr | Mazdak Farrokhzad | -4/+4 | |
| 2019-12-22 | Format the world | Mark Rousskov | -288/+262 | |
| 2019-12-22 | Rollup merge of #67148 - Centril:ty-polish, r=estebank | Mazdak Farrokhzad | -5/+2 | |
| Refactor type & bounds parsing thoroughly PR is based on https://github.com/rust-lang/rust/pull/67131 with first one from this PR being ` extract parse_ty_tuple_or_parens`. Also fixes #67146. r? @estebank | ||||
| 2019-12-21 | extract parse_array_or_slice_ty | Mazdak Farrokhzad | -5/+2 | |
| 2019-12-21 | Rollup merge of #67355 - Centril:merge-mut, r=oli-obk | Mazdak Farrokhzad | -10/+10 | |
| Merge `ast::Mutability` and `mir::Mutability` r? @oli-obk | ||||
| 2019-12-20 | introduce 'type AttrVec' | Mazdak Farrokhzad | -4/+3 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -10/+10 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-12 | `AssocImplKind::{Method -> Fn}`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-12-12 | More c-variadic errors as semantic restrictions. | Mazdak Farrokhzad | -45/+10 | |
| 2019-12-12 | Move `allow_c_varadic` logic to `ast_validation`. | Mazdak Farrokhzad | -14/+2 | |
