rust/tests/ui/fmt
Matthias Krüger 5559313a14
Rollup merge of #146490 - Oneirical:uncountable-integer-12, r=jieyouxu
Rehome 26 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#5 of Batch #2]

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-10-18 23:54:44 +02:00
..
auxiliary Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
fmt_debug compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
closing-brace-as-fill.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
closing-brace-as-fill.stderr Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
debug-single-call.rs cleaned up some tests 2025-06-30 11:16:18 +05:00
format-args-argument-span.rs Add test for span of implicit format args captures. 2023-03-27 14:57:02 +02:00
format-args-argument-span.stderr Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
format-args-capture-first-literal-is-macro.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
format-args-capture-first-literal-is-macro.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
format-args-capture-from-pm-first-arg-macro.rs Ignore more failing ui tests for GCC backend 2025-09-26 15:33:48 +02:00
format-args-capture-from-pm-first-arg-macro.stderr Ignore more failing ui tests for GCC backend 2025-09-26 15:33:48 +02:00
format-args-capture-issue-93378.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-93378.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-94010.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-94010.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-102057.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-102057.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-issue-106408.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
format-args-capture-macro-hygiene-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
format-args-capture-macro-hygiene.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
format-args-capture-macro-hygiene.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
format-args-capture-missing-variables.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture-missing-variables.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-args-capture.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
format-args-non-identifier-diagnostics.fixed Extend format arg help for simple tuple index access expression 2024-03-16 22:33:02 +00:00
format-args-non-identifier-diagnostics.rs Extend format arg help for simple tuple index access expression 2024-03-16 22:33:02 +00:00
format-args-non-identifier-diagnostics.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
format-expanded-string.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
format-expanded-string.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
format-macro-no-std.rs cleaned up some tests 2025-06-11 20:51:49 +05:00
format-raw-string-error.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
format-raw-string-error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
format-string-error-2.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
format-string-error-2.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
format-string-error.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
format-string-error.stderr Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
format-string-wrong-order.rs Fix format string grammar in docs and improve alignment error message 2025-08-27 20:45:41 +05:30
format-string-wrong-order.stderr Fix format string grammar in docs and improve alignment error message 2025-08-27 20:45:41 +05:30
format-with-yield-point.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ifmt-bad-arg.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
ifmt-bad-arg.stderr Apply requested changes 2025-09-08 19:19:59 +02:00
ifmt-bad-format-args.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ifmt-bad-format-args.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
ifmt-unimpl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ifmt-unimpl.stderr Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
ifmt-unknown-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ifmt-unknown-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
incorrect-separator.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incorrect-separator.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
indoc-issue-106408.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
issue-23781.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-75307.rs Move tests 2023-02-16 11:42:35 -03:00
issue-75307.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-86085.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-86085.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-89173.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-89173.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-91556.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
issue-91556.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
issue-103826.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-103826.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-104142.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-104142.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
nested-awaits-issue-122674.rs add non-regression test for issue 122674 2024-03-18 10:01:35 +00:00
no-inline-literals-out-of-range.rs Add more test cases 2024-04-14 21:34:14 +05:30
no-inline-literals-out-of-range.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
non-source-literals.rs Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
non-source-literals.stderr On E0277, point at type that doesn't implement bound 2025-08-22 17:55:15 +00:00
println-debug-different-types.rs cleaned up some tests 2025-07-17 15:51:32 +05:00
raw-idents.rs add diagnostic for raw identifiers in format string 2023-09-06 18:55:45 +02:00
raw-idents.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
respanned-literal-issue-106191.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
respanned-literal-issue-106191.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
send-sync.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
send-sync.stderr fix UI test, simplify error message 2024-06-25 23:43:19 +02:00
struct-field-as-captured-argument.fixed Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
struct-field-as-captured-argument.rs Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
struct-field-as-captured-argument.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
suggest-inline-args.rs Add suggestion to quote inlined format argument as string literal 2023-08-05 17:29:06 +08:00
suggest-inline-args.stderr Add suggestion to quote inlined format argument as string literal 2023-08-05 17:29:06 +08:00
suggest-wrongly-order-format-parameter.fixed add suggestion for wrongly ordered format parameters 2024-12-30 06:14:26 -08:00
suggest-wrongly-order-format-parameter.rs add suggestion for wrongly ordered format parameters 2024-12-30 06:14:26 -08:00
suggest-wrongly-order-format-parameter.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
unicode-escape-spans.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unicode-escape-spans.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unicode-format-string-missing-parameter-70381.rs Add test batch 5 2025-10-12 00:33:20 -04:00
unicode-format-string-missing-parameter-70381.stderr Add test batch 5 2025-10-12 00:33:20 -04:00