-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Enable ELIDED_LIFETIMES_IN_PATHS lint in doctests for the compiler/libstd #106086
Comments
I'll try to do it, It'll take some time to understand, though a little more explanation would be helpful. |
@tanveerraza789 what sort of explanation are you looking for? There's an overview of bootstrap and what it does on https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html, but you don't need to know everything to start working on this issue :) The important context for this issue is that bootstrap is a build system that wraps cargo and builds the compiler and standard library; I think we should set this lint for both, which happens automatically if you put it next to the other lints I linked. I expect the hardest part to be actually fixing the lints, there will be a lot of different places to update. |
Okay I understood, Thanks. |
@tanveerraza789 I was wondering if you'd like to claim this issue or if it's free to work on. Thanks 😄 |
@dmezh Sure, you can claim. |
@rustbot claim |
Actually, this lint is already enabled because we have I don't think this issue is actionable. |
@compiler-errors I did enable it and there were no new warnings at all, so that makes sense. |
Same happened with me, so ya. |
Hmm, ok - there's another attribute you can pass to enable warnings in doctests: but yeah this is less important if it's only in doctests and not the compiler proper. |
@rustbot claim |
We should enable https://doc.rust-lang.org/beta/nightly-rustc/rustc_lint/builtin/static.ELIDED_LIFETIMES_IN_PATHS.html globally in rustc, I would be a fan of that change to make sure we enforce
LabelText<'_>
overLabelText
.rust/src/bootstrap/builder.rs
Lines 1662 to 1667 in f94c926
Originally posted by @compiler-errors in #105975 (comment)
The text was updated successfully, but these errors were encountered: