| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-12-31 | Do not use unicode character in diagnostic help | Esteban Küber | -1/+1 | |
| 2018-12-31 | Use structured suggestion for braceless unicode escape squence | Esteban Küber | -6/+30 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -40/+0 | |
| 2018-12-23 | Rollup merge of #56964 - nnethercote:TokenStream-IsJoint, r=petrochenkov | Mazdak Farrokhzad | -3/+2 | |
| Remove `TokenStream::JointTree`. This is done by adding a new `IsJoint` field to `TokenStream::Tree`, which simplifies a lot of `match` statements. And likewise for `CursorKind`. The commit also adds a new method `TokenTree:stream()` which can replace a choice between `.into()` and `.joint()`. | ||||
| 2018-12-20 | Remove `TokenStream::JointTree`. | Nicholas Nethercote | -3/+2 | |
| This is done by adding a new `IsJoint` field to `TokenStream::Tree`, which simplifies a lot of `match` statements. And likewise for `CursorKind`. The commit also adds a new method `TokenTree:stream()` which can replace a choice between `.into()` and `.joint()`. | ||||
| 2018-12-19 | Rollup merge of #56910 - estebank:unclosed-eof, r=oli-obk | Pietro Albini | -1/+9 | |
| Do not point at delim spans for complete correct blocks Fix #56834. | ||||
| 2018-12-17 | Do not point at delim spans for complete correct blocks | Esteban Küber | -1/+9 | |
| 2018-12-12 | Rename `TokenStream::concat` and remove `TokenStream::concat_rc_vec`. | Nicholas Nethercote | -3/+3 | |
| `TokenStream::new` is a better name for the former, and the latter is now just equivalent to `TokenStream::Stream`. | ||||
| 2018-12-10 | Remove `tokenstream::Delimited`. | Nicholas Nethercote | -4/+5 | |
| Because it's an extra type layer that doesn't really help; in a couple of places it actively gets in the way, and overall removing it makes the code nicer. It does, however, move `tokenstream::TokenTree` further away from the `TokenTree` in `quote.rs`. More importantly, this change reduces the size of `TokenStream` from 48 bytes to 40 bytes on x86-64, which is enough to slightly reduce instruction counts on numerous benchmarks, the best by 1.5%. Note that `open_tt` and `close_tt` have gone from being methods on `Delimited` to associated methods of `TokenTree`. | ||||
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -1/+1 | |
| 2018-12-06 | Rollup merge of #56500 - ljedrz:cleanup_rest_of_const_lifetimes, r=zackmdavis | Pietro Albini | -1/+1 | |
| cleanup: remove static lifetimes from consts A follow-up to https://github.com/rust-lang/rust/pull/56497. | ||||
| 2018-12-06 | Auto merge of #54517 - mcr431:53956-panic-on-include_bytes-of-own-file, ↵ | bors | -1/+1 | |
| r=michaelwoerister 53956 panic on include bytes of own file fix #53956 When using `include_bytes!` on a source file in the project, compiler would panic on subsequent compilations because `expand_include_bytes` would overwrite files in the source_map with no source. This PR changes `expand_include_bytes` to check source_map and use the already existing src, if any. | ||||
| 2018-12-05 | Fix pretty test | Shotaro Yamada | -1/+1 | |
| 2018-12-04 | adds DocTest filename variant, refactors doctest_offset out of source_map, ↵ | Matthew Russo | -1/+1 | |
| fixes remaining test failures | ||||
| 2018-12-04 | cleanup: remove static lifetimes from consts | ljedrz | -1/+1 | |
| 2018-12-04 | Use iterator and pattern APIs instead of `char_at` | Shotaro Yamada | -38/+26 | |
| 2018-11-26 | Update outdated code comments in StringReader | Jason Langenauer | -3/+2 | |
| 2018-11-14 | Clean up some non-mod-rs stuff. | Eric Huss | -1/+0 | |
| 2018-11-04 | Auto merge of #54861 - rep-nop:find_main_in_doctest, r=estebank | bors | -1/+22 | |
| rustdoc: Replaces fn main search and extern crate search with proper parsing during doctests. Fixes #21299. Fixes #33731. Let me know if there's any additional changes you'd like made! | ||||
| 2018-11-01 | buffer errors from initial tokenization when parsing | QuietMisdreavus | -1/+22 | |
| 2018-10-29 | Rename other occs of (Code/File)Map to Source(Map/File) #51574 | David Lavati | -54/+54 | |
| 2018-09-29 | Add a sentence before rustc errors | Guillaume Gomez | -1/+3 | |
| 2018-09-29 | Improve error display for codeblocks in rustdoc | Guillaume Gomez | -0/+11 | |
| 2018-09-09 | Don't compute padding of braces unless they are unmatched | Esteban Küber | -26/+23 | |
| 2018-09-09 | Auto merge of #53902 - dtolnay:group, r=petrochenkov | bors | -3/+3 | |
| proc_macro::Group::span_open and span_close Before this addition, every delimited group like `(`...`)` `[`...`]` `{`...`}` has only a single Span that covers the full source location from opening delimiter to closing delimiter. This makes it impossible for a procedural macro to trigger an error pointing to just the opening or closing delimiter. The Rust compiler does not seem to have the same limitation: ```rust mod m { type T = } ``` ```console error: expected type, found `}` --> src/main.rs:3:1 | 3 | } | ^ ``` On that same input, a procedural macro would be forced to trigger the error on the last token inside the block, on the entire block, or on the next token after the block, none of which is really what you want for an error like above. This commit adds `group.span_open()` and `group.span_close()` which access the Span associated with just the opening delimiter and just the closing delimiter of the group. Relevant to Syn as we implement real error messages for when parsing fails in a procedural macro: https://github.com/dtolnay/syn/issues/476. ```diff impl Group { fn span(&self) -> Span; + fn span_open(&self) -> Span; + fn span_close(&self) -> Span; } ``` Fixes #48187 r? @alexcrichton | ||||
| 2018-09-08 | Track distinct spans for open and close delimiter | David Tolnay | -3/+3 | |
| 2018-09-05 | Change wording of unclosed delimiter label | Esteban Küber | -1/+4 | |
| 2018-09-05 | Provide more context for unenclosed delimiters | Esteban Küber | -2/+43 | |
| * When encountering EOF, point at the last opening brace that does not have the same indentation level as its close delimiter. * When encountering the wrong type of close delimiter, point at the likely correct open delimiter to give a better idea of what went wrong. | ||||
| 2018-09-05 | Reword un-closed delimiter label | Esteban Küber | -2/+2 | |
| 2018-08-28 | Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc. | Eduard-Mihai Burtescu | -3/+3 | |
| 2018-08-23 | use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵ | Matthias Krüger | -1/+1 | |
| or "".into() | ||||
| 2018-08-20 | Set applicability for more suggestions. | Sébastien Duquette | -2/+6 | |
| 2018-08-19 | fix tidy errors | Donato Sciarra | -6/+6 | |
| 2018-08-19 | mv codemap source_map | Donato Sciarra | -2/+2 | |
| 2018-08-19 | mv codemap() source_map() | Donato Sciarra | -3/+3 | |
| 2018-08-19 | mv (mod) codemap source_map | Donato Sciarra | -3/+3 | |
| 2018-08-19 | mv filemap source_file | Donato Sciarra | -23/+23 | |
| 2018-08-19 | mv FileMap SourceFile | Donato Sciarra | -5/+5 | |
| 2018-08-19 | mv CodeMap SourceMap | Donato Sciarra | -20/+20 | |
| 2018-08-17 | Rollup merge of #53373 - estebank:unclosed, r=petrochenkov | kennytm | -11/+21 | |
| Tweak unclosed delimiter parser error | ||||
| 2018-08-15 | Do not emit "incorrect close delimiter" twice in the same place | Esteban Küber | -11/+19 | |
| 2018-08-15 | Tweak unclosed delimiter parser error | Esteban Küber | -2/+4 | |
| 2018-08-13 | A few cleanups and minor improvements for the lexer | ljedrz | -74/+134 | |
| 2018-07-29 | Replace push loops with collect() and extend() where possible | ljedrz | -3/+1 | |
| 2018-07-23 | Allow by default, fix tests | mark | -0/+1 | |
| 2018-07-20 | proc_macro: move some implementation details to a rustc module. | Eduard-Mihai Burtescu | -6/+0 | |
| 2018-07-14 | Remove some tests using AST comparisons, fix other tests | Vadim Petrochenkov | -2/+4 | |
| 2018-07-14 | Remove most of `PartialEq` impls from AST and HIR structures | Vadim Petrochenkov | -1/+1 | |
| 2018-07-10 | Deny bare trait objects in in src/libsyntax | ljedrz | -1/+1 | |
| 2018-06-28 | Fix FileMap::line_begin_pos(). | Michael Woerister | -2/+4 | |
| The method relied on the FileMap still being under construction in order for it to do what the name promises. It's now independent of the current state. | ||||
