rust/tests/ui/auto-traits
Esteban Küber 6efddac288 Provide more context on derived obligation error primary label
Expand the primary span of E0277 when the immediate unmet bound is not what the user wrote:

```
error[E0277]: the trait bound `i32: Bar` is not satisfied
 --> f100.rs:6:6
  |
6 |     <i32 as Foo>::foo();
  |      ^^^ the trait `Bar` is not implemented for `i32`, which is required by `i32: Foo`
  |
help: this trait has no implementations, consider adding one
 --> f100.rs:2:1
  |
2 | trait Bar {}
  | ^^^^^^^^^
note: required for `i32` to implement `Foo`
 --> f100.rs:3:14
  |
3 | impl<T: Bar> Foo for T {}
  |         ---  ^^^     ^
  |         |
  |         unsatisfied trait bound introduced here
```

Fix #40120.
2024-01-30 21:28:18 +00:00
..
auto-is-contextual.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-projection-recursion.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
auto-trait-validation.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
auto-traits.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
bad-generics-on-dyn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-generics-on-dyn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
has-arguments.rs Extend builtin/auto trait args with error when they have >1 argument 2023-11-06 21:29:08 +00:00
has-arguments.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-23080-2.current.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-23080-2.next.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-23080-2.rs update use of feature flags 2023-12-14 15:22:37 +01:00
issue-23080.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23080.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-83857-ub.rs clean up after 113312 2023-07-28 20:15:12 +02:00
issue-83857-ub.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-84075.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-84075.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-117789.rs Turn assert_eq into a delay_span_bug 2023-11-13 08:36:12 +08:00
issue-117789.stderr Bless tests 2024-01-13 12:46:58 -05:00
pre-cfg.rs Gate against auto traits pre-expansion 2023-10-03 19:12:00 +00:00
pre-cfg.stderr Bless tests 2024-01-13 12:46:58 -05:00
str-contains-slice-conceptually.rs Treat str as containing [u8] for auto trait purposes 2023-02-25 20:01:33 +00:00
str-contains-slice-conceptually.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
suspicious-impls-lint.rs Moves the negative impls into a separate test file 2023-03-06 21:05:23 +08:00
suspicious-impls-lint.stderr Moves the negative impls into a separate test file 2023-03-06 21:05:23 +08:00
suspicious-negative-impls-lint.rs Moves the negative impls into a separate test file 2023-03-06 21:05:23 +08:00
suspicious-negative-impls-lint.stderr Bless the suspicious-negative-impls-lint.rs 2023-03-06 21:25:43 +08:00
typeck-auto-trait-no-supertraits-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-auto-trait-no-supertraits-2.stderr Complete migrating ast_passes to derive diagnostics 2023-02-25 15:19:13 +00:00
typeck-auto-trait-no-supertraits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-auto-trait-no-supertraits.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeck-default-trait-impl-constituent-types-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-constituent-types-2.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
typeck-default-trait-impl-constituent-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-constituent-types.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
typeck-default-trait-impl-negation.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-negation.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-precedence.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
typeck-default-trait-impl-precedence.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00