rust/src/test/ui/missing
bors 64ea639c12 Auto merge of #68689 - estebank:where-clause-sugg-missing-fn, r=varkor
When suggesting associated fn with type parameters, include in the structured suggestion

Address #50734.

```
error[E0046]: not all trait items implemented, missing: `foo`, `bar`, `baz`
  --> file.rs:14:1
   |
14 | impl TraitA<()> for S {
   | ^^^^^^^^^^^^^^^^^^^^^ missing `foo`, `bar`, `baz` in implementation
   |
   = help: implement the missing item: `fn foo<T>(_: T) -> Self where T: TraitB, TraitB::Item = A { unimplemented!() }`
   = help: implement the missing item: `fn bar<T>(_: T) -> Self { unimplemented!() }`
   = help: implement the missing item: `fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: std::marker::Copy { unimplemented!() }`
```

It doesn't work well for associated types with `ty::Predicate::Projection`s as we need to resugar `T: Trait, Trait::Assoc = K` → `T: Trait<Assoc = K>`.
2020-02-09 07:11:56 +00:00
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
missing-items review comment 2020-02-08 21:08:59 -08:00
missing-alloc_error_handler.rs Stabilize the alloc crate. 2019-04-12 20:07:30 +02:00
missing-alloc_error_handler.stderr Merged migrated compile-fail tests and ui tests. Fixes #46841. 2018-08-14 11:12:09 +02:00
missing-allocator.rs Stabilize the alloc crate. 2019-04-12 20:07:30 +02:00
missing-allocator.stderr normalize use of backticks in compiler messages for librustc_metadata 2019-07-19 22:24:56 +02:00
missing-block-hint.rs Remove licenses 2018-12-25 21:08:33 -07:00
missing-block-hint.stderr more recovery in if-parsing 2019-12-23 13:42:25 +01:00
missing-comma-in-match.fixed Remove "here" from "expected one of X here" 2019-11-06 17:26:20 -08:00
missing-comma-in-match.rs Remove "here" from "expected one of X here" 2019-11-06 17:26:20 -08:00
missing-comma-in-match.stderr Remove "here" from "expected one of X here" 2019-11-06 17:26:20 -08:00
missing-derivable-attr.rs Remove licenses 2018-12-25 21:08:33 -07:00
missing-derivable-attr.stderr Update tests 2019-03-11 23:10:26 +03:00
missing-fields-in-struct-pattern.rs Remove licenses 2018-12-25 21:08:33 -07:00
missing-fields-in-struct-pattern.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
missing-macro-use.rs resolve: Remove ! from "cannot find" diagnostics for macros 2019-09-15 13:22:07 +03:00
missing-macro-use.stderr resolve: Remove ! from "cannot find" diagnostics for macros 2019-09-15 13:22:07 +03:00
missing-main.rs Remove licenses 2018-12-25 21:08:33 -07:00
missing-main.stderr Provide a span if main function is not present in crate 2019-09-14 11:27:45 -04:00
missing-return.rs Remove licenses 2018-12-25 21:08:33 -07:00
missing-return.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
missing-semicolon-warning.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
missing-semicolon-warning.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
missing-stability.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
missing-stability.stderr Update tests 2019-03-11 23:10:26 +03:00