| error: item in documentation is missing backticks | |
| --> tests/ui/doc/doc-fixable.rs:8: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:8: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:11: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:14: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:14: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:17: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:19: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:21: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:23: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:38: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:46: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:61: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:92: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:110: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:115:8 | |
| | | |
| LL | /// ## CamelCaseThing | |
| | ^^^^^^^^^^^^^^ | |
| | | |
| help: try | |
| | | |
| LL - /// ## CamelCaseThing | |
| LL + /// ## `CamelCaseThing` | |
| | | |
| error: item in documentation is missing backticks | |
| --> tests/ui/doc/doc-fixable.rs:119:7 | |
| | | |
| LL | /// # CamelCaseThing | |
| | ^^^^^^^^^^^^^^ | |
| | | |
| help: try | |
| | | |
| LL - /// # CamelCaseThing | |
| LL + /// # `CamelCaseThing` | |
| | | |
| error: item in documentation is missing backticks | |
| --> tests/ui/doc/doc-fixable.rs:122: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:124: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:132: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:146: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:158: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:163: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:164: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:172: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:177: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:178: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:192: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:212: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:237: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:261: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:261: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:266:5 | |
| | | |
| LL | /// ABes | |
| | ^^^^ | |
| | | |
| help: try | |
| | | |
| LL - /// ABes | |
| LL + /// `ABes` | |
| | | |
| error: item in documentation is missing backticks | |
| --> tests/ui/doc/doc-fixable.rs:273: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:278: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 | |