-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(false positive) doc_markdown should disregard escaped underscores #2581
Comments
This was on |
It looks like this is caused by us using
into
The lint then splits this up into the words |
phansch
added
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
S-blocked
Status: marked as blocked ❌ on something else such as an RFC or other implementation work
and removed
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
labels
Dec 18, 2020
This is still an issue today. Any updates on this (after 3 years? :) ) |
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Sep 12, 2023
…nishearth,flip1995 Reuse rustdoc's doc comment handling in Clippy Moves `source_span_for_markdown_range` and `span_of_attrs` (renamed to `span_of_fragments`) to `rustc_resolve::rustdoc` so it can be used in Clippy Fixes rust-lang/rust-clippy#10277 Fixes rust-lang/rust-clippy#5593 Fixes rust-lang/rust-clippy#10263 Fixes rust-lang/rust-clippy#2581
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this issue
Sep 25, 2023
…nishearth,flip1995 Reuse rustdoc's doc comment handling in Clippy Moves `source_span_for_markdown_range` and `span_of_attrs` (renamed to `span_of_fragments`) to `rustc_resolve::rustdoc` so it can be used in Clippy Fixes rust-lang#10277 Fixes rust-lang#5593 Fixes rust-lang#10263 Fixes rust-lang#2581
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a docstring has an escaped underscore (
\_
), then clippy should treat that escaped underscore as any other (insignificant) character.results in
The text was updated successfully, but these errors were encountered: