-
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
Rename Error::provide to Error::provide_context #112531
Rename Error::provide to Error::provide_context #112531
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
@m-ou-se @Amanieu @yaahc please excuse the pings on a PR that's not mine, but does anything need to be done for this PR? It seems like a pretty straightforward rename, though it could impact the |
@waynr for the record, I don't mind you cherry-picking this PR :) |
r? @Amanieu |
Considering the |
@Amanieu ah yeah that's a good point. I'm in favor of sticking with |
☔ The latest upstream changes (presumably #113464) made this pull request unmergeable. Please resolve the merge conflicts. |
Ah shoot, I thought I had responded to this. I agree. Without |
No objection :) I did mention in this PRs description that the removal of
|
Resolves the deref/autoref method name conflict between
Error::provide
andProvider::provide
mentioned in the tracking issue forerror_generic_member_access
#99301.Note:
provide_context
is the method name that was originally proposed in the RFC.This comment suggests removing the provider API, which would also resolve the name conflict as a side effect. However, even if it is indeed removed, there's still a small chance it'll be brought back later, I guess. Plus, some users (including myself) feel like the name
provide_context
provides a clearer indication what should be provided.