Skip to content

Conversation

@yaahc
Copy link
Member

@yaahc yaahc commented Dec 16, 2025

Adds guidance on a specific provider API implementation anti pattern that implementers of the error trait should avoid.

resolves #99301 (comment)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Dec 16, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 16, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

/// }
/// ```
///
/// # Implementation Conventions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this at the bottom of the existing doc comment but I wasn't sure if I should feature this more prominently, the only issue is I felt like it might be confusing to provide an example of what not to do before an example of how to use it properly, but the pre-existing example is quite long so I also worry that readers will entirely miss the new section.

@yaahc yaahc force-pushed the provider-doc-update branch 2 times, most recently from c2fcd93 to 39760d5 Compare December 16, 2025 22:02
@rust-log-analyzer

This comment has been minimized.

@yaahc yaahc force-pushed the provider-doc-update branch from 39760d5 to b30716c Compare December 16, 2025 23:22
@rust-log-analyzer
Copy link
Collaborator

The job pr-check-2 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@juntyr
Copy link
Contributor

juntyr commented Dec 17, 2025

In the final paragraph, there is "otherwords" -> "other words", and "Error" which should link to the Error trait

(unfortunately I couldn't review in-line since my app bugged out)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue for error_generic_member_access

5 participants