about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2023-01-13 16:54:22 +0900
committerGitHub <noreply@github.com>2023-01-13 16:54:22 +0900
commit71b99c48ee7f1b7d2e79180851a84ed693dfdbc5 (patch)
treef25dc90583693dc69d5d92405bfcc23f9ce74f69
parentd21616737b56681fdf19cdf9a9f8db16d0e87961 (diff)
parent2253646395c70c525368c29399fb4bb91fb95438 (diff)
downloadrust-71b99c48ee7f1b7d2e79180851a84ed693dfdbc5.tar.gz
rust-71b99c48ee7f1b7d2e79180851a84ed693dfdbc5.zip
Rollup merge of #106608 - compiler-errors:missing-generics-verbose, r=estebank
Render missing generics suggestion verbosely

It's a bit easier to read like this, especially ones that are appending new generics onto an existing list, like ": `, T`" which render somewhat poorly inline.

Also don't suggest `dyn` as a type parameter to add, even if technically that's valid in edition 2015.
-rw-r--r--tests/ui/crashes/ice-6252.stderr9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/ui/crashes/ice-6252.stderr b/tests/ui/crashes/ice-6252.stderr
index 638e4a54849..efdd56dd47d 100644
--- a/tests/ui/crashes/ice-6252.stderr
+++ b/tests/ui/crashes/ice-6252.stderr
@@ -17,9 +17,12 @@ error[E0412]: cannot find type `VAL` in this scope
   --> $DIR/ice-6252.rs:10:63
    |
 LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
-   |          -                                                    ^^^ not found in this scope
-   |          |
-   |          help: you might be missing a type parameter: `, VAL`
+   |                                                               ^^^ not found in this scope
+   |
+help: you might be missing a type parameter
+   |
+LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
+   |          +++++
 
 error[E0046]: not all trait items implemented, missing: `VAL`
   --> $DIR/ice-6252.rs:10:1