| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-02 | syntax: improve parameter without type suggestions | David Wood | -0/+1 | |
| This commit improves the suggestions provided when function parameters do not have types: - A new suggestion is added for arbitrary self types, which suggests adding `self: ` before the type. - Existing suggestions are now provided when a `<` is found where a `:` was expected (previously only `,` and `)` or trait items), this gives suggestions in the case where the unnamed parameter type is generic in a free function. - The suggestion that a type name be provided (e.g. `fn foo(HashMap<u32>)` -> `fn foo(HashMap: TypeName<u32>)`) will no longer occur when a `<` was found instead of `:`. - The ident will not be used for recovery when a `<` was found instead of `:`. Signed-off-by: David Wood <david@davidtw.co> | ||||
| 2019-10-01 | syntax: de-closure-ify `check_or_expected`. | Mazdak Farrokhzad | -7/+7 | |
| 2019-10-01 | syntax: merge things back into `parse_visibility`. | Mazdak Farrokhzad | -37/+25 | |
| 2019-10-01 | syntax: put helpers of `parse_self_param` in the method. | Mazdak Farrokhzad | -58/+57 | |
| 2019-10-01 | syntax: document some methods. | Mazdak Farrokhzad | -2/+6 | |
| 2019-09-30 | syntax: extract `error_on_invalid_abi`. | Mazdak Farrokhzad | -14/+17 | |
| 2019-09-30 | syntax: cleanup `parse_visibility`. | Mazdak Farrokhzad | -53/+69 | |
| 2019-09-30 | syntax: misc cleanup | Mazdak Farrokhzad | -44/+30 | |
| 2019-09-30 | syntax: reorder param parsing to make more sense. | Mazdak Farrokhzad | -153/+153 | |
| 2019-09-30 | syntax refactor `parse_self_param` (5) | Mazdak Farrokhzad | -22/+21 | |
| 2019-09-30 | syntax refactor `parse_self_param` (4) | Mazdak Farrokhzad | -24/+35 | |
| 2019-09-30 | syntax refactor `parse_self_param` (3) | Mazdak Farrokhzad | -28/+20 | |
| 2019-09-30 | syntax refactor `parse_self_param` (2) | Mazdak Farrokhzad | -11/+16 | |
| 2019-09-30 | syntax refactor `parse_self_param` (1) | Mazdak Farrokhzad | -12/+13 | |
| 2019-09-30 | syntax refactor `parse_fn_params` | Mazdak Farrokhzad | -28/+29 | |
| 2019-09-30 | syntax: `is_named_argument` -> `is_named_param`. | Mazdak Farrokhzad | -2/+2 | |
| 2019-09-29 | Rollup merge of #64894 - Centril:fix-64682, r=petrochenkov | Mazdak Farrokhzad | -50/+23 | |
| syntax: fix dropping of attribute on first param of non-method assocated fn Fixes #64682. The general idea is that we bake parsing of `self` into `parse_param_general` and then we just use standard list parsing. Overall, this simplifies the parsing and makes it more consistent. r? @petrochenkov cc @c410-f3r | ||||
| 2019-09-29 | syntax: fix #64682. | Mazdak Farrokhzad | -50/+23 | |
| Fuse parsing of `self` into `parse_param_general`. | ||||
| 2019-09-28 | syntax: don't keep a redundant c_variadic flag in the AST. | Eduard-Mihai Burtescu | -3/+4 | |
| 2019-09-26 | Rename `Ty.node` to `Ty.kind` | varkor | -1/+1 | |
| 2019-09-11 | Stabilize `param_attrs` in Rust 1.39.0 | Caio | -2/+2 | |
| 2019-09-09 | Resolve attributes in several places | Caio | -1/+8 | |
| Arm, Field, FieldPat, GenericParam, Param, StructField and Variant | ||||
| 2019-09-07 | Aggregation of cosmetic changes made during work on REPL PRs: libsyntax | Alexander Regueiro | -25/+25 | |
| 2019-09-06 | reduce visibility | Aleksey Kladov | -11/+11 | |
| 2019-08-28 | Auto merge of #63127 - kper:pr, r=nikomatsakis | bors | -48/+50 | |
| Cleanup: Consistently use `Param` instead of `Arg` #62426 Fixes #62426 | ||||
| 2019-08-27 | Cleanup: Consistently use `Param` instead of `Arg` #62426 | Kevin Per | -48/+50 | |
| 2019-08-27 | Rollup merge of #63761 - petrochenkov:procattrs, r=eddyb | Mazdak Farrokhzad | -4/+5 | |
| Propagate spans and attributes from proc macro definitions Thanks to https://github.com/rust-lang/rust/pull/63269 we now have spans and attributes from proc macro definitions available in metadata. However, that PR didn't actually put them into use! This PR finishes that work. Attributes `rustc_macro_transparency`, `allow_internal_unstable`, `allow_internal_unsafe`, `local_inner_macros`, `rustc_builtin_macro`, `stable`, `unstable`, `rustc_deprecated`, `deprecated` now have effect when applied to proc macro definition functions. From those attributes only `deprecated` is both stable and supposed to be used in new code. (`#![staged_api]` still cannot be used in proc macro crates for unrelated reasons though.) `Span::def_site` from the proc macro API now returns the correct location of the proc macro definition. Also, I made a mistake in https://github.com/rust-lang/rust/pull/63269#discussion_r312702919, loaded proc macros didn't actually use the resolver cache. This PR fixes the caching issue, now proc macros go through the `Resolver::macro_map` cache as well. (Also, the first commit turns `proc_macro::quote` into a regular built-in macro to reduce the number of places where `SyntaxExtension`s need to be manually created.) | ||||
| 2019-08-27 | proc_macro: Update `Span::def_site` to use the proc macro definition location | Vadim Petrochenkov | -4/+5 | |
| Which is no longer dummy and is available from metadata now. | ||||
| 2019-08-25 | parser: gracefully handle `fn foo(A | B: type)`. | Mazdak Farrokhzad | -1/+1 | |
| 2019-08-24 | parser: drive-by: simplify `parse_arg_general`. | Mazdak Farrokhzad | -6/+3 | |
| 2019-08-15 | hygiene: Remove `Option`s from functions returning `ExpnInfo` | Vadim Petrochenkov | -1/+0 | |
| The expansion info is not optional and should always exist | ||||
| 2019-08-15 | syntax_pos: Introduce a helper for checking whether a span comes from expansion | Vadim Petrochenkov | -1/+1 | |
| 2019-08-12 | syntax: account for CVarArgs being in the argument list. | Eduard-Mihai Burtescu | -1/+1 | |
| 2019-08-11 | parser: {check,expect}_lifetime into ty.rs | Mazdak Farrokhzad | -17/+1 | |
| 2019-08-11 | parser: move into generics.rs | Mazdak Farrokhzad | -270/+2 | |
| 2019-08-11 | parser: move into stmt.rs | Mazdak Farrokhzad | -458/+9 | |
| 2019-08-11 | parser: move parse_fn_block_decl into expr.rs | Mazdak Farrokhzad | -51/+1 | |
| 2019-08-11 | parser: move parse_ident_or_underscore into item.rs | Mazdak Farrokhzad | -11/+0 | |
| 2019-08-11 | parser: split into {ty, path}.rs | Mazdak Farrokhzad | -899/+9 | |
| 2019-08-11 | parser: split into {item,module}.rs | Mazdak Farrokhzad | -2218/+20 | |
| 2019-08-11 | parser: split into pat.rs | Mazdak Farrokhzad | -633/+8 | |
| 2019-08-11 | parser: split into expr.rs | Mazdak Farrokhzad | -1667/+9 | |
| 2019-08-09 | Recover parser from `foo(_, _)` | Esteban Küber | -20/+50 | |
| 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 | -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-03 | Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkov | Mazdak Farrokhzad | -9/+2 | |
| Cleanup syntax::attr Mostly removing needless arguments to constructors r? @petrochenkov | ||||
| 2019-08-03 | Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centril | bors | -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-02 | Rollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebank | Mazdak Farrokhzad | -1/+9 | |
| Fix ICE in #63135 Closes #63135. r?@estebank | ||||
