2021-11-04 07:52:36 -05:00
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:9:9
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::doc-markdown` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::doc_markdown)]`
|
2021-12-06 05:33:31 -06:00
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// The `foo_bar` function does _nothing_. See also foo::bar. (note the dot there)
|
|
|
|
| ~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:9:51
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// The foo_bar function does _nothing_. See also `foo::bar`. (note the dot there)
|
|
|
|
| ~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:10:83
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | /// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not Foo::some_fun
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | /// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not `Foo::some_fun`
|
2021-12-06 05:33:31 -06:00
|
|
|
| ~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:12:13
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// Here be `::a::global:path`, and _::another::global::path_. :: is not a path though.
|
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:12:36
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// Here be ::a::global:path, and _::another::global::path_. :: is not a path though.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// Here be ::a::global:path, and _`::another::global::path`_. :: is not a path though.
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:13:25
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// Import an item from ::awesome::global::blob:: (Intended postfix)
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// Import an item from `::awesome::global::blob::` (Intended postfix)
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:14:31
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// These are the options for ::Cat: (Intended trailing single colon, shouldn't be linted)
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// These are the options for `::Cat`: (Intended trailing single colon, shouldn't be linted)
|
|
|
|
| ~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:15:22
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// That's not code ~NotInCodeBlock~.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// That's not code ~`NotInCodeBlock`~.
|
|
|
|
| ~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:16:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:30:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:37:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:51:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:75:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:92:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:100:8
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// ## CamelCaseThing
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// ## `CamelCaseThing`
|
|
|
|
| ~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:103:7
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// # CamelCaseThing
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// # `CamelCaseThing`
|
|
|
|
| ~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:105:22
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// Not a title #897 CamelCaseThing
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// Not a title #897 `CamelCaseThing`
|
|
|
|
| ~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:106:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:113:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:126:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:137:43
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /** E.g., serialization of an empty list: FooBar
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /** E.g., serialization of an empty list: `FooBar`
|
|
|
|
| ~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:142:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | And BarQuz too.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | And `BarQuz` too.
|
|
|
|
| ~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:143:1
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | `be_sure_we_got_to_the_end_of_it`
|
|
|
|
|
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:148:43
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /** E.g., serialization of an empty list: FooBar
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /** E.g., serialization of an empty list: `FooBar`
|
|
|
|
| ~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:153:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | And BarQuz too.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | And `BarQuz` too.
|
|
|
|
| ~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:154:1
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | `be_sure_we_got_to_the_end_of_it`
|
|
|
|
|
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:165:5
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// be_sure_we_got_to_the_end_of_it
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `be_sure_we_got_to_the_end_of_it`
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:184:22
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | /// An iterator over mycrate::Collection's values.
|
2021-12-06 05:33:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// An iterator over `mycrate::Collection`'s values.
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~
|
2021-11-04 07:52:36 -05:00
|
|
|
|
2023-09-08 17:39:20 -05:00
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:208:34
|
2023-09-08 17:39:20 -05:00
|
|
|
|
|
|
|
|
LL | /// Foo \[bar\] \[baz\] \[qux\]. DocMarkdownLint
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// Foo \[bar\] \[baz\] \[qux\]. `DocMarkdownLint`
|
|
|
|
| ~~~~~~~~~~~~~~~~~
|
|
|
|
|
2023-12-16 07:12:50 -06:00
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:231:22
|
2023-12-16 07:12:50 -06:00
|
|
|
|
|
|
|
|
LL | /// There is no try (do() or do_not()).
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// There is no try (`do()` or do_not()).
|
|
|
|
| ~~~~~~
|
|
|
|
|
|
|
|
error: item in documentation is missing backticks
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc/doc-fixable.rs:231:30
|
2023-12-16 07:12:50 -06:00
|
|
|
|
|
|
|
|
LL | /// There is no try (do() or do_not()).
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// There is no try (do() or `do_not()`).
|
|
|
|
| ~~~~~~~~~~
|
|
|
|
|
2024-03-07 10:19:29 -06:00
|
|
|
error: item in documentation is missing backticks
|
|
|
|
--> tests/ui/doc/doc-fixable.rs:234:5
|
|
|
|
|
|
|
|
|
LL | /// ABes
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: try
|
|
|
|
|
|
|
|
|
LL | /// `ABes`
|
|
|
|
| ~~~~~~
|
|
|
|
|
|
|
|
error: aborting due to 32 previous errors
|
2021-11-04 07:52:36 -05:00
|
|
|
|