rust/tests/ui/array-slice-vec
许杰友 Jieyou Xu (Joe) 2d05870897
Rollup merge of #144983 - Oneirical:uncountable-integer, r=jieyouxu
Rehome 37 `tests/ui/issues/` tests to other subdirectories under `tests/ui/`

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that ``@Kivooeo`` was using.

r? ``@jieyouxu``
2025-08-19 19:42:06 +08:00
..
array-break-length.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-break-length.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array-not-vector.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
array-not-vector.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
array_const_index-0.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
array_const_index-0.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
array_const_index-1.rs Use the informative error as the main const eval error message 2025-06-02 15:37:15 +00:00
array_const_index-1.stderr const-eval error: always say in which item the error occurred 2025-06-07 13:42:30 +02:00
array_const_index-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bounds-check-no-overflow.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
box-of-array-of-drop-1.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
box-of-array-of-drop-2.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
byte-literals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cast-in-array-size.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
check-static-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
copy-out-of-array-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
destructure-array-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
driftsort-off-by-one-issue-136103.rs Fix off-by-one error causing driftsort to crash 2025-01-28 23:39:46 -08:00
dst-raw-slice.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
empty-mutable-vec.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
estr-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
evec-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fixed-size-arrays-zero-size-types-8898.rs Rehome tests/ui/issues/ tests [3/?] 2025-08-04 16:43:53 -04:00
fixed_length_copy.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
huge-largest-array.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
infer_array_len.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-15730.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-18425.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-69103-extra-binding-subslice.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-69103-extra-binding-subslice.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ivec-pass-by-value.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
match_arr_unknown_len.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
match_arr_unknown_len.stderr Simplify array length mismatch error reporting 2024-11-24 03:32:11 +00:00
matching-on-vector-slice-option-8498.rs Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
mut-vstore-expr.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
mutability-inherits-through-fixed-length-vec.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
mutable-alias-vec.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-vec-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-vec-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
nested-vec-3.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
new-style-fixed-length-vec.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
pattern-matching-fixed-length-vectors-7784.rs Rehome tests/ui/issues/ tests [5/?] 2025-08-17 13:01:02 -04:00
rcvr-borrowed-to-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
repeat_empty_ok.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeat_empty_ok.stderr Remove extra # from url 2024-01-24 00:41:45 +01:00
repeated-vector-syntax.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
show-boxed-slice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
slice-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-2.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
slice-mut-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-mut-2.stderr overhaul &mut suggestions in borrowck errors 2025-08-16 22:34:17 +08:00
slice-mut.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
slice-mut.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
slice-of-zero-size-elements.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
slice-panic-1.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
slice-panic-2.rs tests: use needs-threads instead of ignore-emscripten 2025-01-23 20:51:29 +08:00
slice-pat-type-mismatches.rs address review 2023-07-17 22:06:32 +00:00
slice-pat-type-mismatches.stderr address review 2023-07-17 22:06:32 +00:00
slice-to-vec-comparison.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
slice-to-vec-comparison.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
slice.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
slice_binary_search.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
slice_is_sorted_by_borrow.rs stabilize is_sorted 2024-07-28 03:11:54 +08:00
subslice-only-once-semantic-restriction.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-only-once-semantic-restriction.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
subslice-patterns-const-eval-match.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
subslice-patterns-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-array-length.fixed stabilize gai 2025-06-11 15:30:15 +01:00
suggest-array-length.rs stabilize gai 2025-06-11 15:30:15 +01:00
suggest-array-length.stderr stabilize gai 2025-06-11 15:30:15 +01:00
variance-vec-covariant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-dst.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-fixed-length.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-late-init.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-macro-no-std.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
vec-macro-rvalue-scope.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-macro-with-brackets.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
vec-macro-with-comma-only.rs Tweak more warnings. 2024-10-28 14:20:28 +11:00
vec-macro-with-comma-only.stderr Tweak more warnings. 2024-10-28 14:20:28 +11:00
vec-macro-with-trailing-comma.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-matching-autoslice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-matching-fixed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-matching-fold.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-matching-legal-tail-element-borrow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-matching.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vec-mut-iter-borrow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-mut-iter-borrow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
vec-overrun.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
vec-repeat-with-cast.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
vec-res-add.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-res-add.stderr Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
vec-tail-matching.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
vector-cast-weirdness.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-cast-weirdness.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-no-ann-2.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
vector-no-ann.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vector-no-ann.stderr Use fn ptr signature instead of {closure@..} in infer error 2024-04-10 00:41:27 +00:00