| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-07-26 | Rollup merge of #62963 - estebank:homoglyph-recovery, r=petrochenkov | Mazdak Farrokhzad | -35/+52 | |
| Allow lexer to recover from some homoglyphs | ||||
| 2019-07-25 | Rollup merge of #62887 - estebank:issue-62881, r=petrochenkov | Mazdak Farrokhzad | -1/+14 | |
| Make the parser TokenStream more resilient after mismatched delimiter recovery Fix #62881, fix #62895. | ||||
| 2019-07-25 | review comments: add FIXME comments and formatting | Esteban Küber | -8/+21 | |
| 2019-07-24 | Allow lexer to recover from some homoglyphs | Esteban Küber | -33/+37 | |
| 2019-07-24 | Rollup merge of #62917 - estebank:trailing-slash, r=matklad | Mazdak Farrokhzad | -1/+1 | |
| Always emit trailing slash error Fix #62913. r? @petrochenkov | ||||
| 2019-07-23 | Always emit trailing slash error | Esteban Küber | -1/+1 | |
| 2019-07-23 | review comments | Esteban Küber | -3/+4 | |
| 2019-07-23 | Fix another case | Esteban Küber | -3/+12 | |
| 2019-07-23 | Rollup merge of #62851 - matklad:unescape, r=petrochenkov | Mark Rousskov | -609/+5 | |
| move unescape module to rustc_lexer It makes sense to keep the definition of escape sequences closer to the lexer itself, and it is also a bit of code that I would like to share with rust-analyzer. r? @petrochenkov | ||||
| 2019-07-23 | Rollup merge of #62791 - estebank:type-ascription, r=petrochenkov | Mark Rousskov | -65/+73 | |
| Handle more cases of typos misinterpreted as type ascription Fix #60933, #54516. CC #47666, #34255, #48016. | ||||
| 2019-07-22 | Make the parser TokenStream more resilient after mismatched delimiter recovery | Esteban Küber | -0/+3 | |
| 2019-07-22 | Rollup merge of #62870 - matklad:issue-62863, r=petrochenkov | Mazdak Farrokhzad | -1/+1 | |
| fix lexing of comments with many \r closes #62863 | ||||
| 2019-07-22 | fix lexing of comments with many \r | Aleksey Kladov | -1/+1 | |
| closes #62863 | ||||
| 2019-07-21 | Fix typo in Unicode character name | Andrew Dassonville | -1/+1 | |
| 2019-07-21 | move unescape module to rustc_lexer | Aleksey Kladov | -609/+5 | |
| 2019-07-20 | Introduce rustc_lexer | Aleksey Kladov | -1247/+531 | |
| The idea here is to make a reusable library out of the existing rust-lexer, by separating out pure lexing and rustc-specific concerns, like spans, error reporting an interning. So, rustc_lexer operates directly on `&str`, produces simple tokens which are a pair of type-tag and a bit of original text, and does not report errors, instead storing them as flags on the token. | ||||
| 2019-07-19 | review comments | Esteban Küber | -16/+10 | |
| 2019-07-19 | Handle more cases of typos misinterpreted as type ascription | Esteban Küber | -61/+75 | |
| 2019-07-16 | Rollup merge of #62703 - ↵ | Mark Rousskov | -3/+3 | |
| fakenine:normalize_use_of_backticks_compiler_messages_p6, r=eddyb normalize use of backticks in compiler messages for libsyntax/parse https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-16 | Rollup merge of #62666 - estebank:preempt-ice, r=eddyb | Mark Rousskov | -8/+9 | |
| Cancel unemitted diagnostics during error recovery Follow up to https://github.com/rust-lang/rust/pull/62604. Use @eddyb's preferred style and catch other case of the same problem. r? @eddyb | ||||
| 2019-07-15 | Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebank | Mark Rousskov | -1/+1 | |
| Fix #62660 If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE. Fixes #62660. | ||||
| 2019-07-16 | normalize use of backticks in compiler messages for libsyntax/parse | Samy Kacimi | -3/+3 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-15 | Auto merge of #62670 - estebank:extern-fn-with-body, r=petrochenkov | bors | -14/+61 | |
| Detect `fn` with a body in an `extern` block Fix #62109. | ||||
| 2019-07-14 | Auto merge of #62643 - estebank:parse-recovery-type-errs, r=petrochenkov | bors | -2/+4 | |
| Do not emit type errors after parse error in last statement of block When recovering from a parse error inside a block, do not emit type errors generating on that block's recovered return expression. Fix #57383. | ||||
| 2019-07-14 | Auto merge of #62638 - estebank:issue-62554, r=petrochenkov | bors | -17/+13 | |
| Use snippet instead of pprinting statement Fix #62554. | ||||
| 2019-07-13 | review comment | Esteban Küber | -1/+1 | |
| 2019-07-13 | Detect `fn` with a body in an `extern` block | Esteban Küber | -14/+61 | |
| 2019-07-13 | Don't drop DiagnosticBuilder if parsing fails | Jonathan Goodman | -1/+1 | |
| If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE. Fixes #62660. | ||||
| 2019-07-13 | Cancel unemitted diagnostics during error recovery | Esteban Küber | -8/+9 | |
| 2019-07-13 | Rollup merge of #62604 - estebank:unemitted-err-ice, r=pnkfelix | Mazdak Farrokhzad | -4/+7 | |
| Handle errors during error recovery gracefully Fix #62546. | ||||
| 2019-07-12 | Do not emit type errors after parse error in last statement of block | Esteban Küber | -2/+4 | |
| When recovering from a parse error inside a block, do not emit type errors generating on that block's recovered return expression. Fix #57383. | ||||
| 2019-07-12 | Use snippet instead of pprinting statement | Esteban Küber | -17/+13 | |
| 2019-07-12 | Rollup merge of #62607 - estebank:this-mem-is-out-of-control, r=petrochenkov | Mazdak Farrokhzad | -2/+3 | |
| Correctly break out of recovery loop Fix #61858. | ||||
| 2019-07-11 | Correctly break out of recovery loop | Esteban Küber | -2/+3 | |
| 2019-07-11 | Emit dropped unemitted errors to aid in ICE debugging | Esteban Küber | -6/+7 | |
| 2019-07-11 | Handle errors during error recovery gracefully | Esteban Küber | -4/+7 | |
| 2019-07-10 | Remove needless indent arguments | Mark Rousskov | -1/+1 | |
| We're always indenting by INDENT_UNIT anyway | ||||
| 2019-07-10 | Move pp::Printer helpers to direct impl | Mark Rousskov | -4/+1 | |
| 2019-07-10 | Replace src: &mut dyn Read with String | Mark Rousskov | -4/+1 | |
| 2019-07-10 | Remove duplicate attr_to_string | Mark Rousskov | -1/+1 | |
| attribute_to_string exists. | ||||
| 2019-07-10 | Move literal_to_string to fmt::Display | Mark Rousskov | -1/+29 | |
| 2019-07-07 | syntax: Pre-intern names of all built-in macros | Vadim Petrochenkov | -1/+1 | |
| They always end up interned anyway | ||||
| 2019-07-06 | Rollup merge of #62329 - matklad:no-peeking, r=petrochenkov | Mazdak Farrokhzad | -157/+94 | |
| Remove support for 1-token lookahead from the lexer `StringReader` maintained `peek_token` and `peek_span_src_raw` for look ahead. `peek_token` was used only by rustdoc syntax coloring. After moving peeking logic into highlighter, I was able to remove `peek_token` from the lexer. I tried to use `iter::Peekable`, but that wasn't as pretty as I hoped, due to buffered fatal errors. So I went with hand-rolled peeking. After that I've noticed that the only peeking behavior left was for raw tokens to test tt jointness. I've rewritten it in terms of trivia tokens, and not just spans. After that it became possible to simplify the awkward constructor of the lexer, which could return `Err` if the first peeked token contained error. | ||||
| 2019-07-05 | Rollup merge of #62292 - Centril:split-async-closures, r=cramertj | Mazdak Farrokhzad | -15/+25 | |
| Move `async || ...` closures into `#![feature(async_closure)]` The `async || expr` syntax is moved out from `#![feature(async_await)]` into its own gate `#![feature(async_closure)]`. New tracking issue: https://github.com/rust-lang/rust/issues/62290 Closes https://github.com/rust-lang/rust/issues/62214. cc https://github.com/rust-lang/rust/issues/62149 r? @varkor | ||||
| 2019-07-05 | Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddyb | bors | -15/+15 | |
| Remove io::Result from syntax::print Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-07-04 | make unwrap_or_abort non-generic again | Aleksey Kladov | -1/+1 | |
| 2019-07-04 | remove unused mk_sp_and_raw | Aleksey Kladov | -10/+3 | |
| 2019-07-04 | don't rely on spans when checking tokens for jointness | Aleksey Kladov | -47/+29 | |
| 2019-07-04 | slightly comment lexer API | Aleksey Kladov | -11/+18 | |
| 2019-07-04 | move constructors to top | Aleksey Kladov | -51/+51 | |
