rust/tests/ui/fmt
Esteban Küber 5b54286640 Remove detail from label/note that is already available in other note
Remove the "which is required by `{root_obligation}`" post-script in
"the trait `X` is not implemented for `Y`" explanation in E0277. This
information is already conveyed in the notes explaining requirements,
making it redundant while making the text (particularly in labels)
harder to read.

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
vs the prior

```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
  --> $DIR/wf-static-type.rs:10:13
   |
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
   |             ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`, which is required by `Option<NotCopy>: Copy`
   |
   = note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
  --> $DIR/wf-static-type.rs:7:17
   |
LL | struct IsCopy<T:Copy> { t: T }
   |                 ^^^^ required by this bound in `IsCopy`
```
2024-10-29 16:26:57 +00:00
..
auxiliary [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fmt_debug
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
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 Tweak output for 'add line' suggestion 2023-04-12 22:50:10 +00:00
format-args-capture-first-literal-is-macro.rs macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
format-args-capture-first-literal-is-macro.stderr macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
format-args-capture-from-pm-first-arg-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
format-args-capture-from-pm-first-arg-macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
format-args-capture-macro-hygiene.stderr Move /src/test to /tests 2023-01-11 09:32:08 +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 Extend format arg help for simple tuple index access expression 2024-03-16 22:33:02 +00:00
format-expanded-string.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
format-expanded-string.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00: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 Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02: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 Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
format-string-wrong-order.stderr Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
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 Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ifmt-unimpl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ifmt-unimpl.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00: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 Show number in error message even for one error 2023-11-24 19:15:52 +01: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 Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02: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 Add more test cases 2024-04-14 21:34:14 +05:30
raw-idents.rs add diagnostic for raw identifiers in format string 2023-09-06 18:55:45 +02:00
raw-idents.stderr add diagnostic for raw identifiers in format string 2023-09-06 18:55:45 +02:00
respanned-literal-issue-106191.rs Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02:00
respanned-literal-issue-106191.stderr Remove 'apostrophes' from rustc_parse_format 2024-10-14 23:22:51 +02: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 Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
suggest-inline-args.rs
suggest-inline-args.stderr Add suggestion to quote inlined format argument as string literal 2023-08-05 17:29:06 +08: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