mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
80 lines
2.3 KiB
Text
80 lines
2.3 KiB
Text
error: backticks are unbalanced
|
|
--> $DIR/unbalanced_ticks.rs:7:1
|
|
|
|
|
LL | / /// This is a doc comment with `unbalanced_tick marks and several words that
|
|
LL | |
|
|
LL | | /// should be `encompassed_by` tick marks because they `contain_underscores`.
|
|
LL | | /// Because of the initial `unbalanced_tick` pair, the error message is
|
|
LL | | /// very `confusing_and_misleading`.
|
|
| |____________________________________^
|
|
|
|
|
= help: a backtick may be missing a pair
|
|
= note: `-D clippy::doc-markdown` implied by `-D warnings`
|
|
|
|
error: backticks are unbalanced
|
|
--> $DIR/unbalanced_ticks.rs:14:1
|
|
|
|
|
LL | /// This paragraph has `unbalanced_tick marks and should stop_linting.
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a backtick may be missing a pair
|
|
|
|
error: item in documentation is missing backticks
|
|
--> $DIR/unbalanced_ticks.rs:17:32
|
|
|
|
|
LL | /// This paragraph is fine and should_be linted normally.
|
|
| ^^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL | /// This paragraph is fine and `should_be` linted normally.
|
|
| ~~~~~~~~~~~
|
|
|
|
error: backticks are unbalanced
|
|
--> $DIR/unbalanced_ticks.rs:20:1
|
|
|
|
|
LL | /// Double unbalanced backtick from ``here to here` should lint.
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a backtick may be missing a pair
|
|
|
|
error: item in documentation is missing backticks
|
|
--> $DIR/unbalanced_ticks.rs:34:8
|
|
|
|
|
LL | /// ## not_fine
|
|
| ^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL | /// ## `not_fine`
|
|
| ~~~~~~~~~~
|
|
|
|
error: backticks are unbalanced
|
|
--> $DIR/unbalanced_ticks.rs:37:1
|
|
|
|
|
LL | /// ### `unbalanced
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a backtick may be missing a pair
|
|
|
|
error: backticks are unbalanced
|
|
--> $DIR/unbalanced_ticks.rs:40:1
|
|
|
|
|
LL | /// - This `item has unbalanced tick marks
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: a backtick may be missing a pair
|
|
|
|
error: item in documentation is missing backticks
|
|
--> $DIR/unbalanced_ticks.rs:42:23
|
|
|
|
|
LL | /// - This item needs backticks_here
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL | /// - This item needs `backticks_here`
|
|
| ~~~~~~~~~~~~~~~~
|
|
|
|
error: aborting due to 8 previous errors
|
|
|