about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer/unescape_error_reporting.rs
AgeCommit message (Expand)AuthorLines
2025-04-04Replace `rustc_lexer/unescape` with `rustc-literal-escaper` crateGuillaume Gomez-1/+1
2025-03-18Revert "Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retriev...Ralf Jung-1/+1
2025-02-10Extract `unescape` from `rustc_lexer` into its own crateGuillaume Gomez-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-2/+2
2024-05-23Remove `#[macro_use] extern crate tracing` from `rustc_parse`.Nicholas Nethercote-0/+1
2024-03-17fix rustdoc testEsteban Küber-1/+1
2024-03-17Use shorter span for existing `'` -> `"` structured suggestionEsteban Küber-5/+15
2024-02-15Make `emit_unescape_error` return `Option<ErrorGuaranteed>`.Nicholas Nethercote-32/+26
2024-01-12Detect `NulInCStr` error earlier.Nicholas Nethercote-0/+3
2024-01-10Rename `{create,emit}_warning` as `{create,emit}_warn`.Nicholas Nethercote-2/+2
2023-12-18Rename many `DiagCtxt` arguments.Nicholas Nethercote-25/+22
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-2/+2
2023-12-13Rename the `span` args to `emit_unescape_error`.Nicholas Nethercote-33/+42
2023-08-16Fix suggestion for attempting to define a string with single quotesbeetrees-14/+8
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-8/+7
2023-07-23fix some clippy::style findingsMatthias Krüger-1/+1
2023-06-10Use a better linkHankai Zhang-1/+1
2023-06-10Update links to Rust Reference page on literals in diagnosticHankai Zhang-1/+1
2023-05-05Rollup merge of #108801 - fee1-dead-contrib:c-str, r=compiler-errorsDylan DPC-8/+14
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-7/+4
2023-05-02refactor unescapeDeadbeef-8/+14
2023-02-06Migrate `rustc_parse` to derive diagnosticsclubby789-174/+74
2022-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-19/+13
2022-11-03Use `Mode` less.Nicholas Nethercote-7/+7
2022-10-22Properly escape quotes when suggesting switching between char/string literalsclubby789-2/+17
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal by...Oli Scherer-6/+2
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-4/+4
2022-03-16rustc_error: make ErrorReported impossible to constructmark-1/+1
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-12/+14
2022-02-14suggest using raw string literals when invalid escapes appearErin Petra Sofiya Moon-0/+9
2021-11-16Inline printable function5225225-5/+7
2021-11-16Suggest removing the non-printing characters5225225-1/+16
2021-11-16Print full char literal on error if any are non-printing5225225-0/+10
2021-10-31Lint against RTL unicode codepoints in literals and commentsEsteban Küber-5/+15
2021-09-10Improve diagnostics if a character literal contains combining marksFabian Wolff-14/+47
2021-08-11Warn when an escaped newline skips multiple linesAnton Golov-0/+5
2021-08-02Rollup merge of #87659 - FabianWolff:issue-87397, r=davidtwcoCameron Steffen-8/+29
2021-07-31Fix invalid suggestions for non-ASCII characters in byte constantsFabian Wolff-8/+29
2021-07-30Add warning when whitespace is not skipped after an escaped newline.Anton Golov-0/+6
2021-02-03Handle `Span`s for byte and raw strings and add more detailEsteban Küber-70/+116
2020-10-05Fix span for unicode escape suggestion.Eric Huss-3/+2
2020-08-30mv compiler to compiler/mark-0/+223