| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-10-30 | Do not complain about missing `fn main()` in some cases | Esteban Küber | -6/+7 | |
| 2019-10-30 | Reduce ammount of errors given unclosed delimiter | Esteban Küber | -15/+24 | |
| When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace. | ||||
| 2019-10-25 | Rollup merge of #65790 - Centril:move-report-invalid, r=davidtwco | Mazdak Farrokhzad | -19/+0 | |
| move report_invalid_macro_expansion_item to item.rs From https://github.com/rust-lang/rust/pull/65324. r? @Mark-Simulacrum | ||||
| 2019-10-25 | move report_invalid_macro_expansion_item to item.rs | Mazdak Farrokhzad | -19/+0 | |
| 2019-10-24 | pre-expansion gate crate_visibility_modifier | Mazdak Farrokhzad | -0/+1 | |
| 2019-10-23 | Rollup merge of #65686 - yjhmelody:yjhmelody-patch-1, r=Centril | Yuki Okushi | -7/+0 | |
| refactor and move `maybe_append` | ||||
| 2019-10-22 | refactor maybe_append | yjhmelody | -7/+0 | |
| 2019-10-18 | Remove two no-op `into()` calls. | Nicholas Nethercote | -2/+2 | |
| 2019-10-16 | ui-fulldeps: make them pass again? | Mazdak Farrokhzad | -1/+1 | |
| 2019-10-16 | move SeqSep to parser.rs | Mazdak Farrokhzad | -1/+25 | |
| 2019-10-16 | move syntax::ext to new crate syntax_expand | Mazdak Farrokhzad | -7/+7 | |
| 2019-10-16 | syntax: reduce visibilities | Mazdak Farrokhzad | -31/+29 | |
| 2019-10-16 | move diagnostics.rs into parser/ | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-16 | move parse::attr -> parse::parser::attr | Mazdak Farrokhzad | -0/+1 | |
| 2019-10-15 | syntax::parse::sess -> syntax::sess | Mazdak Farrokhzad | -1/+2 | |
| 2019-10-15 | move parse_lit to expr.rs | Mazdak Farrokhzad | -6/+2 | |
| 2019-10-15 | syntax: extract sess.rs for ParseSess | Mazdak Farrokhzad | -1/+1 | |
| 2019-10-14 | Rollup merge of #65261 - nnethercote:rm-Option-from-TokenStream, r=petrochenkov | Tyler Mandry | -2/+2 | |
| Remove `Option` from `TokenStream` A code simplification. r? @petrochenkov | ||||
| 2019-10-14 | Rollup merge of #65363 - Centril:less-pprust, r=Mark-Simulacrum | Mazdak Farrokhzad | -2/+4 | |
| Remove implicit dependencies on syntax::pprust Part of https://github.com/rust-lang/rust/pull/65324. The main goal here is to facilitate the eventual move of pprust out from libsyntax and because an AST definition typically should not depend on its pretty printer. r? @estebank | ||||
| 2019-10-14 | Use `TokenStream::default()` in more places. | Nicholas Nethercote | -2/+2 | |
| 2019-10-13 | syntax: consolidate function parsing in `item.rs` | Mazdak Farrokhzad | -281/+4 | |
| 2019-10-13 | ast: remove implicit pprust dependency via Display. | Mazdak Farrokhzad | -2/+4 | |
| 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-07 | syntax: unify and simplify fn signature parsing. | Mazdak Farrokhzad | -58/+38 | |
| 2019-10-07 | Auto merge of #64906 - Aaron1011:feature/extern-const-fn, r=Centril | bors | -0/+9 | |
| Add support for `const unsafe? extern fn` This works just as you might expect - an `const extern fn` is a `const fn` that is callable from foreign code. Currently, panicking is not allowed in `const`s. When https://github.com/rust-lang/rfcs/pull/2345 (https://github.com/rust-lang/rust/issues/51999) is stabilized, then panicking in an `const extern fn` will produce a compile-time error when invoked at compile time, and an abort when invoked at runtime. Since this is extending the language (we're allowing the `const` keyword in a new context), I believe that this will need an FCP. However, it's a very minor change, so I didn't think that filing an RFC was necessary. This will allow libc (and other FFI crates) to make many functions `const`, without having to give up on making them `extern` as well. Tracking issue: https://github.com/rust-lang/rust/issues/64926. | ||||
| 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-02 | Add support for 'extern const fn' | Aaron Hill | -0/+9 | |
| This works just as you might expect - an 'extern const fn' is a 'const fn' that is callable from foreign code. Currently, panicking is not allowed in consts. When RFC 2345 is stabilized, then panicking in an 'extern const fn' will produce a compile-time error when invoked at compile time, and an abort when invoked at runtime. Since this is extending the language (we're allowing the `const` keyword in a new context), I believe that this will need an FCP. However, it's a very minor change, so I didn't think that filing an RFC was necessary. This will allow libc (and other FFI crates) to make many functions `const`, without having to give up on making them `extern` as well. | ||||
| 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 | ||||
