| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-07-23 | Lambda expressions honor no struct literal restriction | Aleksey Kladov | -1/+4 | |
| 2017-07-21 | Adjust new suggestions to the suggestion guidelines | Oliver Schneider | -1/+1 | |
| 2017-07-20 | Use the macro structure spans instead of the invocation | Esteban Küber | -5/+3 | |
| 2017-07-18 | Catch expression does not require semicolon to be a statement | Aleksey Kladov | -1/+2 | |
| 2017-07-18 | Unify rules about commas in match arms and semicolons in expressions | Aleksey Kladov | -10/+2 | |
| 2017-07-17 | Add flag to hide code on inline suggestions | Esteban Küber | -3/+3 | |
| Now there's a way to add suggestions that hide the suggested code when presented inline, to avoid weird wording when short code snippets are added at the end. | ||||
| 2017-07-17 | Change some helps to suggestions | Oliver Schneider | -2/+2 | |
| 2017-07-16 | Point at `:` when using it instead of `;` | Esteban Küber | -1/+16 | |
| When triggering type ascription in such a way that we can infer a statement end was intended, add a suggestion for the change. Always point out the reason for the expectation of a type is due to type ascription. | ||||
| 2017-07-11 | Refactor methods onto Printer struct. | Mark Simulacrum | -6/+4 | |
| No (intentional) changes to behavior. This is intended to avoid the anti-pattern of having to import individual methods throughout code. | ||||
| 2017-07-10 | Store all generic arguments for method calls in AST | Vadim Petrochenkov | -33/+15 | |
| 2017-07-07 | syntax: Apply recovery for casts to type ascription | Vadim Petrochenkov | -46/+53 | |
| Fix spans, add some comments | ||||
| 2017-07-07 | Fix spans for binary operator expression with interpolated identifiers | Vadim Petrochenkov | -5/+12 | |
| 2017-07-06 | Add extra whitespace for suggestions | Esteban Küber | -4/+4 | |
| 2017-07-05 | Merge remote-tracking branch 'origin/master' into proc_macro_api | Alex Crichton | -44/+38 | |
| 2017-06-29 | Change some terminology around keywords and reserved identifiers | petrochenkov | -42/+33 | |
| 2017-06-29 | Make `$crate` a keyword | Vadim Petrochenkov | -1/+2 | |
| 2017-06-27 | syntax: allow negative integer literal expression to be interpolated as pattern | Alex Burka | -1/+3 | |
| 2017-06-26 | Update and fix a few tests | Alex Crichton | -1/+1 | |
| 2017-06-26 | Address review comments. | Jeffrey Seyfried | -13/+33 | |
| 2017-06-26 | Add `LazyTokenStream`. | Jeffrey Seyfried | -13/+54 | |
| 2017-06-26 | Implement `quote!` and other `proc_macro` API. | Jeffrey Seyfried | -6/+73 | |
| 2017-06-26 | Simplify `hygiene::Mark` application, and | Jeffrey Seyfried | -29/+34 | |
| remove variant `Token::SubstNt` in favor of `quoted::TokenTree::MetaVar`. | ||||
| 2017-06-23 | Removed as many "```ignore" as possible. | kennytm | -1/+1 | |
| Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored. | ||||
| 2017-06-16 | Auto merge of #42578 - estebank:recover-binop, r=nikomatsakis | bors | -9/+91 | |
| Learn to parse `a as usize < b` Parsing `a as usize > b` always works, but `a as usize < b` was a parsing error because the parser would think the `<` started a generic type argument for `usize`. The parser now attempts to parse as before, and if a DiagnosticError is returned, try to parse again as a type with no generic arguments. If this fails, return the original `DiagnosticError`. Fix #22644. | ||||
| 2017-06-15 | Review comments | Esteban Küber | -99/+71 | |
| - generate error instead of warning - remove `RewindPoint` and just keep a copy of `Parser` to rewind state. - `dont_parse_generics: bool` -> `parse_generics: bool` - remove `eat_lt` - move error handling code to separate method | ||||
| 2017-06-12 | Change `<` interpreted as generic arg start warning | Esteban Küber | -23/+33 | |
| ``` warning: `<` is interpreted as a start of generic arguments for `usize`, not a comparison --> $DIR/issue-22644.rs:16:33 | 16 | println!("{}", a as usize < b); | - ^ interpreted as generic argument | | | not interpreted as comparison | help: if you want to compare the casted value then write: | println!("{}", (a as usize) < b); ``` | ||||
| 2017-06-12 | Fix affected tests | Esteban Küber | -1/+2 | |
| 2017-06-11 | Suggest non-ambiguous comparison after cast | Esteban Küber | -2/+19 | |
| ``` warning: `<` is interpreted as a start of generic arguments for `usize`, not comparison --> $DIR/issue-22644.rs:16:33 | 16 | println!("{}", a as usize < b); | ^ expected one of `!`, `(`, `+`, `,`, `::`, or `>` here | help: if you want to compare the casted value then write | println!("{}", (a as usize) < b); ``` | ||||
| 2017-06-11 | Learn to parse `a as usize < b` | Esteban Küber | -8/+90 | |
| Parsing `a as usize > b` always works, but `a as usize < b` was a parsing error because the parser would think the `<` started a generic type argument for `usize`. The parser now attempts to parse as before, and if a DiagnosticError is returned, try to parse again as a type with no generic arguments. If this fails, return the original `DiagnosticError`. | ||||
| 2017-06-07 | Replace some matches with try. | Masaki Hara | -4/+1 | |
| 2017-06-06 | Auto merge of #41990 - ↵ | bors | -0/+9 | |
| qnighy:disallow-underscore-suffix-for-string-like-literals, r=nikomatsakis Disallow underscore suffix for string-like literals. This patch turns string/bytestring/char/byte literals followed by an underscore, like `"Foo"_`, to an error. `scan_optional_raw_name` will parse `_` as a valid raw name, but it will be rejected by the parser. I also considered just stopping parsing when the suffix is `_`, but in that case `"Foo"_` will be lexed as two valid tokens. Fixes the latter half of #41723. | ||||
| 2017-06-02 | Rollup merge of #42319 - Manishearth:const-extern, r=nikomatsakis | Mark Simulacrum | -0/+4 | |
| Improve error message for const extern fn It's currently ``error: unmatched visibility `pub` ``, which is a nonsensical error in this context. | ||||
| 2017-05-31 | Improve error message for const extern fn | Manish Goregaokar | -0/+4 | |
| 2017-05-31 | Emit proper expectation for the "default" keyword. | Masaki Hara | -2/+11 | |
| 2017-05-31 | Parse macros named "default" correctly. | Masaki Hara | -19/+14 | |
| 2017-05-31 | Add warning cycle #42326. | Masaki Hara | -1/+14 | |
| 2017-05-25 | Hygienize lifetimes. | Jeffrey Seyfried | -1/+1 | |
| 2017-05-25 | Declarative macros 2.0 without hygiene. | Jeffrey Seyfried | -21/+47 | |
| 2017-05-25 | Refactor out `ast::MacroDef`. | Jeffrey Seyfried | -1/+3 | |
| 2017-05-24 | Rollup merge of #42120 - euclio:unicode, r=arielb1 | Mark Simulacrum | -1/+1 | |
| remove "much" from unicode diagnostic The English seems slightly awkward to me, and it's unnecessary. | ||||
| 2017-05-20 | remove "much" from unicode diagnostic | Andy Russell | -1/+1 | |
| 2017-05-18 | Add an option to the parser to avoid parsing out of line modules | Nick Cameron | -4/+36 | |
| This is useful if parsing from stdin or a String and don't want to try and read in a module from another file. Instead we just leave a stub in the AST. | ||||
| 2017-05-16 | Rollup merge of #41957 - llogiq:clippy-libsyntax, r=petrochenkov | Mark Simulacrum | -205/+195 | |
| Fix some clippy warnings in libsyntax This is mostly removing stray ampersands, needless returns and lifetimes. Basically a lot of small changes. | ||||
| 2017-05-15 | adressed comments by @kennytm and @petrochenkov | Andre Bogus | -5/+4 | |
| 2017-05-14 | Disallow underscore suffix for string-like literals. | Masaki Hara | -5/+1 | |
| 2017-05-12 | Fix some clippy warnings in libsyntax | Andre Bogus | -205/+196 | |
| This is mostly removing stray ampersands, needless returns and lifetimes. | ||||
| 2017-05-12 | Disallow ._ in float literal. | Masaki Hara | -3/+1 | |
| 2017-05-08 | Rollup merge of #41827 - qnighy:allow-bare-cr-in-nondoc-comment, r=estebank | Corey Farwell | -1/+1 | |
| Allow bare CR in ////-style comment. Fixes #40624 in a way that bare CR is allowed in all non-doc comments. | ||||
| 2017-05-08 | Allow bare CR in ////-style comment. | Masaki Hara | -1/+1 | |
| 2017-05-08 | Remove need for &format!(...) or &&"" dances in `span_label` calls | Oliver Schneider | -8/+8 | |
