summaryrefslogtreecommitdiff
path: root/compiler/rustc_parse/src/lexer/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu2022-02-231-2/+4
|
* Adopt let_else in even more placesest312022-02-161-6/+2
|
* review comment: plural of emoji is emojiEsteban Kuber2021-11-231-1/+1
|
* Account for confusable codepoints when recovering emoji identifiersEsteban Kuber2021-11-231-2/+13
|
* Tokenize emoji as if they were valid indentifiersEsteban Kuber2021-11-231-0/+6
| | | | | In the lexer, consider emojis to be valid identifiers and reject them later to avoid knock down parse errors.
* Optimize literal, doc comment lint as well, extract function.Hans Kratz2021-11-041-39/+2
|
* Create subslice as that leads to a smaller code size.Hans Kratz2021-11-041-3/+4
|
* Optimize bidi character detection.Hans Kratz2021-11-041-6/+39
|
* fix formattingPietro Albini2021-11-011-1/+1
|
* Lint against RTL unicode codepoints in literals and commentsEsteban Küber2021-10-311-3/+37
| | | | Address CVE-2021-42574.
* Suggest `br` if the unknown string prefix `rb` is foundFabian Wolff2021-07-311-3/+11
|
* rename rust_2021_token_prefixes to rust_2021_prefixes_incompatible_syntaxRyan Levick2021-07-061-2/+2
|
* rust_2021_token_prefixesRyan Levick2021-07-061-2/+2
|
* Rename reserved_prefix lint to reserved_prefixesRyan Levick2021-07-061-2/+2
|
* No reserved_prefix suggestion in proc macro call_site.Mara Bos2021-06-261-11/+13
|
* Rename 'bad prefix' to 'unknown prefix'.Mara Bos2021-06-261-5/+5
|
* Check the span's edition for the reserved prefixes.Mara Bos2021-06-261-15/+16
|
* Improve comments for reserved prefixes.Mara Bos2021-06-261-1/+4
| | | | Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
* Add migration lint for reserved prefixes.Mara Bos2021-06-261-7/+16
|
* Fix note in reserved prefix error.Mara Bos2021-06-261-1/+1
|
* Add machine applicable suggestion to unknown prefix error.Mara Bos2021-06-261-5/+4
|
* Reserve prefixed identifiers and string literals (RFC 3101)lrh20002021-06-261-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
* Make `Diagnostic::span_fatal` unconditionally raise an errorJoshua Nelson2021-05-081-9/+5
| | | | | It had no callers which didn't immediately call `raise()`, and this unifies the behavior with `Session`.
* Remove some unnecessary uses of `struct_span_fatal`Joshua Nelson2021-05-081-36/+20
| | | | | All of them immediately called `emit()` then `raise()`, so they could just call `span_fatal` directly.
* Fix outdated crate names in compiler docspierwill2021-04-081-1/+1
| | | | | | | Changes `librustc_X` to `rustc_X`, only in documentation comments. Plain code comments are left unchanged. Also fix incorrect file paths.
* Clarify error message wordingSmitty2021-02-071-1/+1
|
* Add note about encoding when null bytes foundSmitty2021-02-061-0/+3
|
* Handle `Span`s for byte and raw strings and add more detailEsteban Küber2021-02-031-10/+20
|
* Fix typo in doc comment for report_too_many_hashesNicolas2020-11-221-1/+1
| | | "to big" -> "too big"
* Fix even more URLsGuillaume Gomez2020-11-051-1/+1
|
* Rename IsJoint -> SpacingAleksey Kladov2020-09-031-7/+7
| | | | To match better naming from proc-macro
* Condense StringReader's API to a single functionAleksey Kladov2020-09-031-29/+16
|
* Don't emit trivia tokensAleksey Kladov2020-09-011-60/+53
|
* Make StringReader privateAleksey Kladov2020-08-311-3/+3
| | | | | After the recent refactorings, we can actually completely hide this type. It should help with #63689.
* Remove unused functionAleksey Kladov2020-08-301-4/+0
|
* mv compiler to compiler/mark2020-08-301-0/+598