Files
rust/tests/ui/doc/doc-fixable.stderr

407 lines
10 KiB
Plaintext

error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:9:9
|
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
| ^^^^^^^
|
= note: `-D clippy::doc-markdown` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_markdown)]`
help: try
|
LL - /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
LL + /// The `foo_bar` function does _nothing_. See also foo::bar. (note the dot there)
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:9:51
|
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
| ^^^^^^^^
|
help: try
|
LL - /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
LL + /// The foo_bar function does _nothing_. See also `foo::bar`. (note the dot there)
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:12:83
|
LL | /// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not Foo::some_fun
| ^^^^^^^^^^^^^
|
help: try
|
LL - /// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not Foo::some_fun
LL + /// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not `Foo::some_fun`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:15:13
|
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
| ^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
LL + /// Here be `::a::global:path`, and _::another::global::path_. :: is not a path though.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:15:36
|
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
| ^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
LL + /// Here be ::a::global:path, and _`::another::global::path`_. :: is not a path though.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:18:25
|
LL | /// Import an item from ::awesome::global::blob:: (Intended postfix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// Import an item from ::awesome::global::blob:: (Intended postfix)
LL + /// Import an item from `::awesome::global::blob::` (Intended postfix)
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:20:31
|
LL | /// These are the options for ::Cat: (Intended trailing single colon, shouldn't be linted)
| ^^^^^
|
help: try
|
LL - /// These are the options for ::Cat: (Intended trailing single colon, shouldn't be linted)
LL + /// These are the options for `::Cat`: (Intended trailing single colon, shouldn't be linted)
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:22:22
|
LL | /// That's not code ~NotInCodeBlock~.
| ^^^^^^^^^^^^^^
|
help: try
|
LL - /// That's not code ~NotInCodeBlock~.
LL + /// That's not code ~`NotInCodeBlock`~.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:24:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:39:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:47:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:62:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:91:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:109:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:118:8
|
LL | /// ## CamelCaseThing
| ^^^^^^^^^^^^^^
|
help: try
|
LL - /// ## CamelCaseThing
LL + /// ## `CamelCaseThing`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:122:7
|
LL | /// # CamelCaseThing
| ^^^^^^^^^^^^^^
|
help: try
|
LL - /// # CamelCaseThing
LL + /// # `CamelCaseThing`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:125:22
|
LL | /// Not a title #897 CamelCaseThing
| ^^^^^^^^^^^^^^
|
help: try
|
LL - /// Not a title #897 CamelCaseThing
LL + /// Not a title #897 `CamelCaseThing`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:127:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:135:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:149:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:161:43
|
LL | /** E.g., serialization of an empty list: FooBar
| ^^^^^^
|
help: try
|
LL - /** E.g., serialization of an empty list: FooBar
LL + /** E.g., serialization of an empty list: `FooBar`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:166:5
|
LL | And BarQuz too.
| ^^^^^^
|
help: try
|
LL - And BarQuz too.
LL + And `BarQuz` too.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:167:1
|
LL | be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - be_sure_we_got_to_the_end_of_it
LL + `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:175:43
|
LL | /** E.g., serialization of an empty list: FooBar
| ^^^^^^
|
help: try
|
LL - /** E.g., serialization of an empty list: FooBar
LL + /** E.g., serialization of an empty list: `FooBar`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:180:5
|
LL | And BarQuz too.
| ^^^^^^
|
help: try
|
LL - And BarQuz too.
LL + And `BarQuz` too.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:181:1
|
LL | be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - be_sure_we_got_to_the_end_of_it
LL + `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:195:5
|
LL | /// be_sure_we_got_to_the_end_of_it
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// be_sure_we_got_to_the_end_of_it
LL + /// `be_sure_we_got_to_the_end_of_it`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:215:22
|
LL | /// An iterator over mycrate::Collection's values.
| ^^^^^^^^^^^^^^^^^^^
|
help: try
|
LL - /// An iterator over mycrate::Collection's values.
LL + /// An iterator over `mycrate::Collection`'s values.
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:240:34
|
LL | /// Foo \[bar\] \[baz\] \[qux\]. DocMarkdownLint
| ^^^^^^^^^^^^^^^
|
help: try
|
LL - /// Foo \[bar\] \[baz\] \[qux\]. DocMarkdownLint
LL + /// Foo \[bar\] \[baz\] \[qux\]. `DocMarkdownLint`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:264:22
|
LL | /// There is no try (do() or do_not()).
| ^^^^
|
help: try
|
LL - /// There is no try (do() or do_not()).
LL + /// There is no try (`do()` or do_not()).
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:264:30
|
LL | /// There is no try (do() or do_not()).
| ^^^^^^^^
|
help: try
|
LL - /// There is no try (do() or do_not()).
LL + /// There is no try (do() or `do_not()`).
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:269:5
|
LL | /// ABes
| ^^^^
|
help: try
|
LL - /// ABes
LL + /// `ABes`
|
error: item in documentation is missing backticks
--> tests/ui/doc/doc-fixable.rs:276:9
|
LL | /// foo()
| ^^^^^
|
help: try
|
LL - /// foo()
LL + /// `foo()`
|
error: you should put bare URLs between `<`/`>` or make a proper Markdown link
--> tests/ui/doc/doc-fixable.rs:281:5
|
LL | /// https://github.com/rust-lang/rust-clippy/pull/12836
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<https://github.com/rust-lang/rust-clippy/pull/12836>`
error: aborting due to 34 previous errors