rust/src
Nicholas Nethercote 7dbf2c0ed8 Make non-ASCII errors more consistent.
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.
2022-11-04 14:23:40 +11:00
..
bootstrap Rollup merge of #102634 - andrewpollack:refactor-test-rustcflags, r=Mark-Simulacrum 2022-10-29 14:18:01 +02:00
ci Auto merge of #103295 - ishitatsuyuki:ninja, r=cuviper 2022-10-30 14:13:42 +00:00
doc Rollup merge of #103588 - weihanglo:rustdoc/url-redirect, r=notriddle 2022-10-30 11:50:27 +05:30
etc Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett 2022-10-14 23:43:42 +02:00
librustdoc Auto merge of #103010 - petrochenkov:effvisdoc, r=GuillaumeGomez 2022-10-30 10:52:04 +00:00
llvm-project@2a2ea6b49e Update LLVM submodule 2022-10-24 14:49:18 +02:00
rustdoc-json-types rustdoc-json-types: Improve ItemSummary::path docs 2022-10-28 10:25:48 +01:00
test Make non-ASCII errors more consistent. 2022-11-04 14:23:40 +11:00
tools Auto merge of #103721 - RalfJung:miri, r=RalfJung 2022-10-30 05:22:37 +00:00
README.md Remove miri from the submodule list and require it for CI to pass 2022-09-21 15:35:53 +00:00
stage0.json bump stage0 2022-09-26 10:13:46 +02:00
version Bump to 1.67.0 2022-10-29 10:28:52 -04:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like cargo, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.