rust/tests
Matthias Krüger ff8c7a7816
Rollup merge of #119172 - nnethercote:earlier-NulInCStr, r=petrochenkov
Detect `NulInCStr` error earlier.

By making it an `EscapeError` instead of a `LitError`. This makes it like the other errors produced when checking string literals contents, e.g. for invalid escape sequences or bare CR chars.

NOTE: this means these errors are issued earlier, before expansion, which changes behaviour. It will be possible to move the check back to the later point if desired. If that happens, it's likely that all the string literal contents checks will be delayed together.

One nice thing about this: the old approach had some code in `report_lit_error` to calculate the span of the nul char from a range. This code used a hardwired `+2` to account for the `c"` at the start of a C string literal, but this should have changed to a `+3` for raw C string literals to account for the `cr"`, which meant that the caret in `cr"` nul error messages was one short of where it should have been. The new approach doesn't need any of this and avoids the off-by-one error.

r? ```@fee1-dead```
2024-01-18 10:34:17 +01:00
..
assembly tests: add sanity-check assembly test for every target 2024-01-17 09:44:11 +00:00
auxiliary
codegen Auto merge of #119954 - scottmcm:option-unwrap-failed, r=WaffleLapkin 2024-01-16 15:32:39 +00:00
codegen-units Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
coverage coverage: llvm-cov expects column numbers to be bytes, not code points 2024-01-08 21:58:46 +11:00
coverage-run-rustdoc
debuginfo update debuginfo tests on Windows 2024-01-12 08:50:14 +01:00
incremental Disable opt in incremental test. 2023-12-24 20:08:58 +00:00
mir-opt Do not read a scalar on a non-scalar layout. 2024-01-16 22:32:48 +00:00
pretty Delegation implementation: step 1 2024-01-12 14:11:16 +03:00
run-make Revert "Auto merge of #113923 - DianQK:restore-no-builtins-lto, r=pnkfelix" 2024-01-12 18:23:04 +08:00
run-make-fulldeps Auto merge of #118899 - veera-sivarajan:fix-makefile, r=Mark-Simulacrum 2024-01-05 07:42:03 +00:00
run-pass-valgrind
rustdoc Rollup merge of #119561 - notriddle:master, r=fmease 2024-01-14 20:17:23 +01:00
rustdoc-gui rustdoc ui: adjust tooltip z-index to be above sidebar 2023-12-31 20:31:56 +01:00
rustdoc-js Rollup merge of #118194 - notriddle:notriddle/tuple-unit, r=GuillaumeGomez 2024-01-06 16:07:46 +01:00
rustdoc-js-std Rollup merge of #118194 - notriddle:notriddle/tuple-unit, r=GuillaumeGomez 2024-01-06 16:07:46 +01:00
rustdoc-json Add regression test for is_object_safe field on traits 2023-12-23 19:00:17 +01:00
rustdoc-ui Rollup merge of #119561 - notriddle:master, r=fmease 2024-01-14 20:17:23 +01:00
ui Rollup merge of #119172 - nnethercote:earlier-NulInCStr, r=petrochenkov 2024-01-18 10:34:17 +01:00
ui-fulldeps Auto merge of #119672 - cjgillot:dse-sandwich, r=oli-obk 2024-01-16 11:34:16 +00:00
COMPILER_TESTS.md