You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
🔍 Renaming Error::provide to Error::provide_context aligns with the original RFC proposal and provides clearer indication of what the method should provide.
🔍 Renaming Error::provide to Error::provide_context resolves a method name conflict with Provider::provide and offers a clearer indication of what the method should provide.
🔍 Renaming Error::provide to Error::provide_context resolves a method name conflict with Provider::provide and provides a clearer indication of what should be provided.
🔍 Renaming Error::provide to Error::provide_context resolves a method name conflict with Provider::provide and provides clearer indication of what should be provided.
🔍 The method name provide_context was originally proposed in the RFC and provides a clearer indication of what should be provided, while also resolving the deref/autoref method name conflict between Error::provide and Provider::provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the deref/autoref method name conflict between
Error::provideandProvider::providementioned in the tracking issue forerror_generic_member_accessrust-lang/rust#99301.Note:
provide_contextis 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_contextprovides a clearer indication what should be provided.