about summary refs log tree commit diff
path: root/src/test/ui/parser/byte-literals.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-54/+0
2022-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-2/+2
There are three kinds of "byte" literals: byte literals, byte string literals, and raw byte string literals. None are allowed to have non-ASCII chars in them. Two `EscapeError` variants exist for when that constraint is violated. - `NonAsciiCharInByte`: used for byte literals and byte string literals. - `NonAsciiCharInByteString`: used for raw byte string literals. As a result, the messages for raw byte string literals use different wording, without good reason. Also, byte string literals are incorrectly described as "byte constants" in some error messages. This commit eliminates `NonAsciiCharInByteString` so the three cases are handled similarly, and described correctly. The `mode` is enough to distinguish them. Note: Some existing error messages mention "byte constants" and some mention "byte literals". I went with the latter here, because it's a more correct name, as used by the Reference.
2021-08-11Modify structured suggestion outputEsteban Küber-1/+1
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-07-31Fix invalid suggestions for non-ASCII characters in byte constantsFabian Wolff-4/+6
2021-02-03Handle `Span`s for byte and raw strings and add more detailEsteban Küber-9/+16
2020-06-16Update ui testsGuillaume Gomez-1/+2
2020-01-08Remove `-Z continue-parse-after-error`Vadim Petrochenkov-7/+7
2019-05-02introduce unescape moduleAleksey Kladov-3/+3
Currently, we deal with escape sequences twice: once when we lex a string, and a second time when we unescape literals. This PR aims to remove this duplication, by introducing a new `unescape` mode as a single source of truth for character escaping rules
2019-03-25compiletest: make path normalization smarterAndy Russell-5/+5
2019-03-20Tweak incorrect escaped char diagnosticEsteban Küber-2/+2
2019-03-11Update testsVadim Petrochenkov-7/+7
2018-12-25Remove licensesMark Rousskov-7/+7
2018-10-21Move parse-fail tests to UIVadim Petrochenkov-0/+44