-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Make late_bound_lifetime_arguments a hard error. #108782
Conversation
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
Should we crater this? It would be nice to see what crates could use fix PRs to reduce the fallout of this. |
@bors try |
⌛ Trying commit 270fa94 with merge ab173a644b8654eb56e6d7c92e29be4886d65169... |
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
Crater report:
|
Does roaring 0.5 also not error? The two crates that depend on 0.4 have no README and no updates since 5 years. The only cssparser dependencies for versions at 0.25 or earlier are either explicitly abandoned or have no README and no updates since 5 years. |
Nominating for lang team FCP. The summary in the tracking issue #42868 is still up to date, so I'm not creating a new summary. The only regressions are in abandoned crates or outdated (and unused) versions of crates that have been updated to not trigger the future incompat lint. |
@rfcbot fcp merge Discussed in a (minimally attended) lang-team triage meeting and we are in favor of moving forward with this. |
Team member @nikomatsakis has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
@rustbot labels -I-lang-nominated |
The intention long term is to make all lifetimes late bound, I would have thought this would mean we should be removing this lint not making it a hard error since otherwise you would be unable to ever turbofish lifetime args. not to mention we may end up with late bound type and const parameters, not being able to turbofish any generic arguments seems not great. |
It would probably be a good idea to nominate this for t-types discussion to figure out how this lint interacts with long term plans for late bound generic parameters |
@rfcbot concern types-team-input Agreed that types team should weigh in here. |
@rust-lang/types, can you comment on this proposal with respect to the following?
|
We haven't discussed this yet, but I do think we should weigh in here. Likely we'll go through nominated issues as a team at the beginning of next month. |
I don't understand why we even want to disallow explicitly stating late-bound lifetime parameters. This is the first time I hear of #42868, and that issue description is confusing to me and doesn't sufficiently motivate the change being made. I posted my confusion/question at #42868 (comment), though now I realize maybe I should have done that here? let me quote it for your convenience:
I guess it's time I use my lang team advisor hat for the first time. ;) |
Since rfcbot hasn't fully implemented the advisors role yet, I'll proxy Ralf's concern. @rfcbot concern unclear-motivation |
There is no real motivation on my end besides simplifying the implementation of #103448. Closing for now, until I get back to that PR. |
Split from #103448
That lint has been there for 5 years.
Fixes #42868