| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-08-01 | Shrink `Token`. | Nicholas Nethercote | -23/+29 | |
| From 72 bytes to 12 bytes (on x86-64). There are two parts to this: - Changing various source code offsets from 64-bit to 32-bit. This is not a problem because the rest of rustc also uses 32-bit source code offsets. This means `Token` is no longer `Copy` but this causes no problems. - Removing the `RawStrError` from `LiteralKind`. Raw string literal invalidity is now indicated by a `None` value within `RawStr`/`RawByteStr`, and the new `validate_raw_str` function can be used to re-lex an invalid raw string literal to get the `RawStrError`. There is one very small change in behaviour. Previously, if a raw string literal matched both the `InvalidStarter` and `TooManyHashes` cases, the latter would override the former. This has now changed, because `raw_double_quoted_string` now uses `?` and so returns immediately upon detecting the `InvalidStarter` case. I think this is a slight improvement to report the earlier-detected error, and it explains the change in the `test_too_many_hashes` test. The commit also removes a couple of comments that refer to #77629 and say that the size of these types don't affect performance. These comments are wrong, though the performance effect is small. | ||||
| 2022-08-01 | Add a size assertion for `Token`. | Nicholas Nethercote | -0/+7 | |
| 2022-08-01 | Remove `StringReader::end_src_index`. | Nicholas Nethercote | -5/+2 | |
| It not needed, always being set to the end of the text. | ||||
| 2022-08-01 | Improve shebang handling. | Nicholas Nethercote | -8/+5 | |
| Avoid doing stuff until it's necessary. | ||||
| 2022-05-20 | Remove `crate` visibility usage in compiler | Jacob Pratt | -1/+1 | |
| 2022-04-29 | errors: `span_suggestion` takes `impl ToString` | David Wood | -2/+2 | |
| Change `span_suggestion` (and variants) to take `impl ToString` rather than `String` for the suggested code, as this simplifies the requirements on the diagnostic derive. Signed-off-by: David Wood <david.wood@huawei.com> | ||||
| 2022-04-28 | rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter` | Vadim Petrochenkov | -9/+9 | |
| 2022-04-16 | Rollup merge of #95859 - rainy-me:unterminated-nested-block-comment, ↵ | Dylan DPC | -10/+50 | |
| r=petrochenkov Improve diagnostics for unterminated nested block comment close #95283 (This is my first time try to messing around with rust compiler and might get a lot of things wrong... :bow: ) | ||||
| 2022-04-14 | refactor: change to use peekable | rainy-me | -20/+17 | |
| 2022-04-13 | couple of clippy::complexity fixes | Matthias Krüger | -3/+3 | |
| 2022-04-14 | improve diagnostics for unterminated nested block comment | rainy-me | -10/+53 | |
| 2022-03-31 | Rollup merge of #95251 - GrishaVar:hashes-u16-to-u8, r=dtolnay | Dylan DPC | -3/+1 | |
| Reduce max hash in raw strings from u16 to u8 [Relevant discussion](https://rust-lang.zulipchat.com/#narrow/stream/237824-t-lang.2Fdoc/topic/Max.20raw.20string.20delimiters) | ||||
| 2022-03-30 | Update error message & remove outdated test comment | Grisha Vartanyan | -3/+1 | |
| 2022-03-27 | Make fatal DiagnosticBuilder yield never | Michael Goulet | -12/+19 | |
| 2022-03-02 | rename ErrorReported -> ErrorGuaranteed | mark | -2/+2 | |
| 2022-02-23 | rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission". | Eduard-Mihai Burtescu | -2/+4 | |
| 2022-02-16 | Adopt let_else in even more places | est31 | -6/+2 | |
| 2021-11-23 | review comment: plural of emoji is emoji | Esteban Kuber | -1/+1 | |
| 2021-11-23 | Account for confusable codepoints when recovering emoji identifiers | Esteban Kuber | -2/+13 | |
| 2021-11-23 | Tokenize emoji as if they were valid indentifiers | Esteban Kuber | -0/+6 | |
| In the lexer, consider emojis to be valid identifiers and reject them later to avoid knock down parse errors. | ||||
| 2021-11-04 | Optimize literal, doc comment lint as well, extract function. | Hans Kratz | -39/+2 | |
| 2021-11-04 | Create subslice as that leads to a smaller code size. | Hans Kratz | -3/+4 | |
| 2021-11-04 | Optimize bidi character detection. | Hans Kratz | -6/+39 | |
| 2021-11-01 | fix formatting | Pietro Albini | -1/+1 | |
| 2021-10-31 | Lint against RTL unicode codepoints in literals and comments | Esteban Küber | -3/+37 | |
| Address CVE-2021-42574. | ||||
| 2021-07-31 | Suggest `br` if the unknown string prefix `rb` is found | Fabian Wolff | -3/+11 | |
| 2021-07-06 | rename rust_2021_token_prefixes to rust_2021_prefixes_incompatible_syntax | Ryan Levick | -2/+2 | |
| 2021-07-06 | rust_2021_token_prefixes | Ryan Levick | -2/+2 | |
| 2021-07-06 | Rename reserved_prefix lint to reserved_prefixes | Ryan Levick | -2/+2 | |
| 2021-06-26 | No reserved_prefix suggestion in proc macro call_site. | Mara Bos | -11/+13 | |
| 2021-06-26 | Rename 'bad prefix' to 'unknown prefix'. | Mara Bos | -5/+5 | |
| 2021-06-26 | Check the span's edition for the reserved prefixes. | Mara Bos | -15/+16 | |
| 2021-06-26 | Improve comments for reserved prefixes. | Mara Bos | -1/+4 | |
| Co-authored-by: Niko Matsakis <niko@alum.mit.edu> | ||||
| 2021-06-26 | Add migration lint for reserved prefixes. | Mara Bos | -7/+16 | |
| 2021-06-26 | Fix note in reserved prefix error. | Mara Bos | -1/+1 | |
| 2021-06-26 | Add machine applicable suggestion to unknown prefix error. | Mara Bos | -5/+4 | |
| 2021-06-26 | Reserve prefixed identifiers and string literals (RFC 3101) | lrh2000 | -1/+31 | |
| This commit denies any identifiers immediately followed by one of three tokens `"`, `'` or `#`, which is stricter than the requirements of RFC 3101 but may be necessary according to the discussion at [Zulip]. [Zulip]: https://rust-lang.zulipchat.com/#narrow/stream/268952-edition-2021/topic/reserved.20prefixes/near/238470099 | ||||
| 2021-05-08 | Make `Diagnostic::span_fatal` unconditionally raise an error | Joshua Nelson | -9/+5 | |
| It had no callers which didn't immediately call `raise()`, and this unifies the behavior with `Session`. | ||||
| 2021-05-08 | Remove some unnecessary uses of `struct_span_fatal` | Joshua Nelson | -36/+20 | |
| All of them immediately called `emit()` then `raise()`, so they could just call `span_fatal` directly. | ||||
| 2021-04-08 | Fix outdated crate names in compiler docs | pierwill | -1/+1 | |
| Changes `librustc_X` to `rustc_X`, only in documentation comments. Plain code comments are left unchanged. Also fix incorrect file paths. | ||||
| 2021-02-07 | Clarify error message wording | Smitty | -1/+1 | |
| 2021-02-06 | Add note about encoding when null bytes found | Smitty | -0/+3 | |
| 2021-02-03 | Handle `Span`s for byte and raw strings and add more detail | Esteban Küber | -10/+20 | |
| 2020-11-22 | Fix typo in doc comment for report_too_many_hashes | Nicolas | -1/+1 | |
| "to big" -> "too big" | ||||
| 2020-11-05 | Fix even more URLs | Guillaume Gomez | -1/+1 | |
| 2020-09-03 | Rename IsJoint -> Spacing | Aleksey Kladov | -7/+7 | |
| To match better naming from proc-macro | ||||
| 2020-09-03 | Condense StringReader's API to a single function | Aleksey Kladov | -29/+16 | |
| 2020-09-01 | Don't emit trivia tokens | Aleksey Kladov | -60/+53 | |
| 2020-08-31 | Make StringReader private | Aleksey Kladov | -3/+3 | |
| After the recent refactorings, we can actually completely hide this type. It should help with #63689. | ||||
| 2020-08-30 | Remove unused function | Aleksey Kladov | -4/+0 | |
