about summary refs log tree commit diff
path: root/src/test/ui/missing/missing-items
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2021-06-21 19:07:19 -0700
committerEsteban Kuber <esteban@kuber.com.ar>2021-08-11 09:46:24 +0000
commit99f2977031706dfef6730764d359b9e5d0f673b4 (patch)
tree16caa7ac1411f6ebe1e56c175e9799a442b59832 /src/test/ui/missing/missing-items
parentd488de82f30fd1dcb0220d57498638596622394e (diff)
downloadrust-99f2977031706dfef6730764d359b9e5d0f673b4.tar.gz
rust-99f2977031706dfef6730764d359b9e5d0f673b4.zip
Modify structured suggestion output
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
Diffstat (limited to 'src/test/ui/missing/missing-items')
-rw-r--r--src/test/ui/missing/missing-items/missing-type-parameter2.stderr24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr
index 985a9bb2a3f..f955659f23d 100644
--- a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr
+++ b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr
@@ -10,11 +10,11 @@ LL | impl X<N> {}
 help: a struct with a similar name exists
    |
 LL | impl X<X> {}
-   |        ^
+   |        ~
 help: you might be missing a type parameter
    |
 LL | impl<N> X<N> {}
-   |     ^^^
+   |     +++
 
 error[E0412]: cannot find type `N` in this scope
   --> $DIR/missing-type-parameter2.rs:9:28
@@ -27,11 +27,11 @@ LL | impl<T, const A: u8 = 2> X<N> {}
 help: a type parameter with a similar name exists
    |
 LL | impl<T, const A: u8 = 2> X<T> {}
-   |                            ^
+   |                            ~
 help: you might be missing a type parameter
    |
 LL | impl<T, const A: u8 = 2, N> X<N> {}
-   |                        ^^^
+   |                        +++
 
 error[E0412]: cannot find type `T` in this scope
   --> $DIR/missing-type-parameter2.rs:14:20
@@ -45,11 +45,11 @@ LL | fn foo(_: T) where T: Send {}
 help: a struct with a similar name exists
    |
 LL | fn foo(_: T) where X: Send {}
-   |                    ^
+   |                    ~
 help: you might be missing a type parameter
    |
 LL | fn foo<T>(_: T) where T: Send {}
-   |       ^^^
+   |       +++
 
 error[E0412]: cannot find type `T` in this scope
   --> $DIR/missing-type-parameter2.rs:14:11
@@ -63,11 +63,11 @@ LL | fn foo(_: T) where T: Send {}
 help: a struct with a similar name exists
    |
 LL | fn foo(_: X) where T: Send {}
-   |           ^
+   |           ~
 help: you might be missing a type parameter
    |
 LL | fn foo<T>(_: T) where T: Send {}
-   |       ^^^
+   |       +++
 
 error[E0412]: cannot find type `A` in this scope
   --> $DIR/missing-type-parameter2.rs:18:24
@@ -81,11 +81,11 @@ LL | fn bar<const N: u8>(_: A) {}
 help: a struct with a similar name exists
    |
 LL | fn bar<const N: u8>(_: X) {}
-   |                        ^
+   |                        ~
 help: you might be missing a type parameter
    |
 LL | fn bar<const N: u8, A>(_: A) {}
-   |                   ^^^
+   |                   +++
 
 error[E0747]: unresolved item provided when a constant was expected
   --> $DIR/missing-type-parameter2.rs:6:8
@@ -96,7 +96,7 @@ LL | impl X<N> {}
 help: if this generic argument was intended as a const parameter, surround it with braces
    |
 LL | impl X<{ N }> {}
-   |        ^   ^
+   |        +   +
 
 error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
   --> $DIR/missing-type-parameter2.rs:9:15
@@ -113,7 +113,7 @@ LL | impl<T, const A: u8 = 2> X<N> {}
 help: if this generic argument was intended as a const parameter, surround it with braces
    |
 LL | impl<T, const A: u8 = 2> X<{ N }> {}
-   |                            ^   ^
+   |                            +   +
 
 error: aborting due to 8 previous errors