rust/src/test
Dylan DPC a5c81695a9
Rollup merge of #91873 - estebank:mention-impls-for-unsatisfied-trait, r=davidtwco
Mention implementers of unsatisfied trait

When encountering an unsatisfied trait bound, if there are no other
suggestions, mention all the types that *do* implement that trait:

```
error[E0277]: the trait bound `f32: Foo` is not satisfied
  --> $DIR/impl_wf.rs:22:6
   |
LL | impl Baz<f32> for f32 { }
   |      ^^^^^^^^ the trait `Foo` is not implemented for `f32`
   |
   = help: the trait `Foo` is implemented for `i32`
note: required by a bound in `Baz`
  --> $DIR/impl_wf.rs:18:31
   |
LL | trait Baz<U: ?Sized> where U: Foo { }
   |                               ^^^ required by this bound in `Baz`
```
```
error[E0277]: the trait bound `u32: Foo` is not satisfied
  --> $DIR/associated-types-path-2.rs:29:5
   |
LL |     f1(2u32, 4u32);
   |     ^^ the trait `Foo` is not implemented for `u32`
   |
   = help: the trait `Foo` is implemented for `i32`
note: required by a bound in `f1`
  --> $DIR/associated-types-path-2.rs:13:14
   |
LL | pub fn f1<T: Foo>(a: T, x: T::A) {}
   |              ^^^ required by this bound in `f1`
```

Suggest dereferencing in more cases.

Fix #87437, fix #90970.
2022-04-05 01:53:31 +02:00
..
assembly short-circuit the easy cases in is_copy_modulo_regions 2022-03-10 01:19:02 -08:00
auxiliary
codegen Rollup merge of #95011 - michaelwoerister:awaitee_field, r=tmandry 2022-03-31 00:26:30 +02:00
codegen-units
debuginfo debuginfo: Fix debuginfo for Box<T> where T is unsized. 2022-03-24 11:12:41 +01:00
incremental Revert "Auto merge of #93893 - oli-obk:sad_revert, r=oli-obk" 2022-03-28 16:27:14 +00:00
mir-opt Disable the test on wasm32 2022-03-10 01:19:02 -08:00
pretty Format core and std macro rules, removing needless surrounding blocks 2022-03-11 15:26:51 -08:00
run-make Stabilize native library modifier syntax and the whole-archive modifier specifically 2022-03-30 23:53:21 +03:00
run-make-fulldeps Address review comments and add a test 2022-04-02 17:26:39 +02:00
run-pass-valgrind
rustdoc Rollup merge of #95613 - GuillaumeGomez:fix-rustdoc-attr-display, r=notriddle 2022-04-03 23:21:43 +02:00
rustdoc-gui Rollup merge of #95470 - GuillaumeGomez:fix-gui-spurious-test, r=notriddle 2022-03-31 13:09:52 +02:00
rustdoc-js rustdoc: add test case for multiple traits and erased names 2022-01-26 13:03:31 -07:00
rustdoc-js-std Update macro:print typed-query rustdoc test to include pin! results 2022-02-14 16:56:37 +01:00
rustdoc-json rustdoc-json: Lifetime tests 2022-03-15 18:34:16 +00:00
rustdoc-ui Add test for multi-line attribute handling in doctests 2022-04-02 21:42:12 +02:00
ui Rollup merge of #91873 - estebank:mention-impls-for-unsatisfied-trait, r=davidtwco 2022-04-05 01:53:31 +02:00
ui-fulldeps Deduplicate ui-fulldeps. 2022-03-21 19:43:53 +01:00
COMPILER_TESTS.md