rust/tests/ui/extern
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
..
auxiliary exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
extern_fat_drop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-calling-convention-test.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-compare-with-return-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-const.fixed Remove asmjs from tests 2023-10-28 23:11:03 -07:00
extern-const.rs Remove asmjs from tests 2023-10-28 23:11:03 -07:00
extern-const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-crate-multiple-missing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-multiple-missing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-rename.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-crate-visibility.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-visibility.stderr Tweak privacy errors to account for reachable items 2023-06-22 16:50:31 +00:00
extern-ffi-fn-with-body.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-ffi-fn-with-body.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-foreign-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-main-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-main-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-main-issue-86110.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-main-issue-86110.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-methods.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-mod-abi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-mod-ordering-exe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-no-mangle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-no-mangle.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-core.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-no-speculative.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-std.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-pub.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-rust.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-static-size-overflow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-static-size-overflow.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-take-value.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-thiscall.rs stabilize abi_thiscall 2023-08-07 14:11:03 +02:00
extern-type-diag-not-similar.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-type-diag-not-similar.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-types-distinct-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-distinct-types.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-types-field-offset.rs also test projecting to some sized fields at non-zero offset in structs with an extern type tail 2023-12-12 17:19:19 +01:00
extern-types-field-offset.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-inherent-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-manual-sync-send.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-not-sync-send.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-not-sync-send.stderr Revert "Suggest using Arc on !Send/!Sync types" 2023-08-28 03:16:48 -07:00
extern-types-pointer-cast.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-size_of_val.align.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-size_of_val.rs test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-size_of_val.size.run.stderr test that both size_of_val and align_of_val panic 2023-12-12 17:19:19 +01:00
extern-types-thin-pointer.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-trait-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-unsized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-types-unsized.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
extern-vectorcall.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-with-type-bounds.rs Gate and validate #[rustc_safe_intrinsic] 2023-09-25 22:33:15 +02:00
extern-with-type-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-wrong-value-type.rs Pretty print Fn traits in rustc_on_unimplemented 2023-11-02 20:57:05 +00:00
extern-wrong-value-type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-1251.rs Move tests 2023-05-24 19:35:59 -03:00
issue-10025.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-10763.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-10764-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-13655.rs remove redundant imports 2023-12-10 10:56:22 +08:00
issue-28324.rs Remove revisions for THIR unsafeck 2024-01-05 09:30:27 +00:00
issue-28324.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
issue-36122-accessing-externed-dst.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36122-accessing-externed-dst.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-64655-allow-unwind-when-calling-panic-directly.rs merge core_panic feature into panic_internals 2023-12-09 14:49:00 +01:00
issue-64655-extern-rust-must-allow-unwind.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-80074.rs exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
issue-80074.stderr exclude unexported macro bindings from extern crate 2024-01-21 20:24:40 +08:00
issue-95829.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-95829.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-112363-extern-item-where-clauses-debug-ice.rs Fix debug ICE for extern type with where clauses 2023-06-12 15:15:45 +08:00
issue-112363-extern-item-where-clauses-debug-ice.stderr Bless tests 2024-01-13 12:46:58 -05:00
issue-116203.rs discard invalid spans in external blocks 2023-11-15 15:28:38 +08:00
issue-116203.stderr discard invalid spans in external blocks 2023-11-15 15:28:38 +08:00
no-mangle-associated-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
not-in-block.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
not-in-block.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00