-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Lint suggestion: Useless explicit documentation link #87799
Comments
Landed in 1.48: #43466 |
Related: rust-lang/rust-clippy#1007 |
This would be difficult to do in clippy because it needs access to
You'd also need to extend rust/src/librustdoc/html/markdown.rs Line 1265 in 25b7648
|
@flip1995 can you move this to rust-lang/rust? It's still a good first issue, but it's not a good first issue for clippy. |
I don't have the rights to move this to rust-lang/rust, so @Manishearth |
@rustbot claim |
@mdsn Are you still working on it? |
@yerke hi! No, please go right ahead and claim it. 😃 If you search for the issue number on Zulip you'll find some questions of mine back then. I'll try to post later some of what I thought while looking into this issue. |
@rustbot claim |
@rustbot claim |
Once intra-rustdoc links lands, many explicit links will become unnecessary. It would be very useful to have a lint that would warn if the computed automatic link is the same as the provided link.
For example:
The text was updated successfully, but these errors were encountered: