diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-10-23 22:20:58 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-10-24 12:26:01 -0700 |
| commit | 0baf61bfdb95980c69fbfcc0fc95ce82e8d81ac9 (patch) | |
| tree | 83a1e3a9b3ce6bdf5e87d47d5a79c5e033096519 /src/test/rustdoc-ui | |
| parent | 4a8c5b20c7772bc5342b83d4b0696ea216ef75a7 (diff) | |
| download | rust-0baf61bfdb95980c69fbfcc0fc95ce82e8d81ac9.tar.gz rust-0baf61bfdb95980c69fbfcc0fc95ce82e8d81ac9.zip | |
Increase spacing for suggestions in diagnostics
Make the spacing between the code snippet and verbose structured suggestions consistent with note and help messages.
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/intra-links-ambiguity.stderr | 4 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/invalid-syntax.stderr | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/intra-links-ambiguity.stderr b/src/test/rustdoc-ui/intra-links-ambiguity.stderr index 5d66cc1364c..9ee3ff57fb5 100644 --- a/src/test/rustdoc-ui/intra-links-ambiguity.stderr +++ b/src/test/rustdoc-ui/intra-links-ambiguity.stderr @@ -23,6 +23,7 @@ error: `ambiguous` is both a struct and a function | LL | /// [ambiguous] is ambiguous. | ^^^^^^^^^ ambiguous link + | help: to link to the struct, prefix with the item type | LL | /// [struct@ambiguous] is ambiguous. @@ -37,6 +38,7 @@ error: `multi_conflict` is a struct, a function, and a macro | LL | /// [`multi_conflict`] is a three-way conflict. | ^^^^^^^^^^^^^^^^ ambiguous link + | help: to link to the struct, prefix with the item type | LL | /// [`struct@multi_conflict`] is a three-way conflict. @@ -55,6 +57,7 @@ error: `type_and_value` is both a module and a constant | LL | /// Ambiguous [type_and_value]. | ^^^^^^^^^^^^^^ ambiguous link + | help: to link to the module, prefix with the item type | LL | /// Ambiguous [module@type_and_value]. @@ -69,6 +72,7 @@ error: `foo::bar` is both an enum and a function | LL | /// Ambiguous non-implied shortcut link [`foo::bar`]. | ^^^^^^^^^^ ambiguous link + | help: to link to the enum, prefix with the item type | LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`]. diff --git a/src/test/rustdoc-ui/invalid-syntax.stderr b/src/test/rustdoc-ui/invalid-syntax.stderr index 6f50edae650..8ec4338e13f 100644 --- a/src/test/rustdoc-ui/invalid-syntax.stderr +++ b/src/test/rustdoc-ui/invalid-syntax.stderr @@ -24,6 +24,7 @@ LL | /// ``` LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/ LL | | /// ``` | |_______^ + | help: mark blocks that do not contain Rust code as text | LL | /// ```text @@ -34,6 +35,7 @@ error: unknown start of token: ` | 3 | | ^^^^^^ did you mean `baz::foobar`? | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 3 | | ^^^^^^ did you mean 'baz::foobar`? @@ -44,6 +46,7 @@ error: unknown start of token: ` | 3 | | ^^^^^^ did you mean `baz::foobar`? | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 3 | | ^^^^^^ did you mean `baz::foobar'? @@ -59,6 +62,7 @@ LL | | /// LL | use foobar::Baz; LL | | /// | ^^^^^^ did you mean `baz::foobar`? LL | | /// ``` | |_______^ + | help: mark blocks that do not contain Rust code as text | LL | /// ```text @@ -78,6 +82,7 @@ LL | /// ``` LL | | /// \_ LL | | /// ``` | |_______^ + | help: mark blocks that do not contain Rust code as text | LL | /// ```text @@ -117,6 +122,7 @@ error: unknown start of token: ` | 1 | ``` | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 1 | '`` @@ -127,6 +133,7 @@ error: unknown start of token: ` | 1 | ``` | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 1 | `'` @@ -137,6 +144,7 @@ error: unknown start of token: ` | 1 | ``` | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 1 | ``' @@ -196,6 +204,7 @@ LL | | /// LL | | /// LL | | /// ``` | |_______^ + | help: mark blocks that do not contain Rust code as text | LL | /// ```text @@ -236,6 +245,7 @@ error: unknown start of token: ` | 1 | ``` | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 1 | '`` @@ -264,6 +274,7 @@ error: unknown start of token: ` | 3 | | ^^^^^^ did you mean `baz::foobar`? | ^ + | help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not | 3 | | ^^^^^^ did you mean 'baz::foobar`? |
