doc_markdown
lint's underlining shifted and recommendations made incorrect by escapes
#10263
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
When using backslash escapes in a doc comment, following
doc_markdown
lint warnings in the same line are shifted to the left by the number of escapes (backslash characters) used before.This could possibly also apply to other lints.
Reproducer
I tried this code:
I expected to see this happen:
In the first doc comment line,
DocMarkdownLint
andhttp://example.com/
should be underlined.Instead, this happened:
In the first doc comment line,
rrect DocMarkdo
andwice: http://examp
are underlined.Diagnostic message 1:
Diagnostic message 2:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: