doc(notable_trait) for impls by conradludgate · Pull Request #94904 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

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

[ Show hidden characters]({{ revealButtonHref }})

conradludgate

#45040 (comment)

Allows the #[doc(notable_trait)] attribute to be used on impls as well as trait definitions.

@rust-highfive

r? @joshtriplett

(rust-highfive has picked a reviewer for you, use r? to override)

@rustbot rustbot added the T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.

label

Mar 13, 2022

@conradludgate

I'm currently running into this issue locally so I'm struggling to test it

Fixed by running ./x.py doc --stage 2

@dtolnay

@bors

camelid

Comment on lines 2100 to 2264

#[doc(notable_trait)]
impl Write for Formatter<'_> {

Choose a reason for hiding this comment

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

Hmm, if we decide to land this, I wonder if we should rename notable_trait to just notable...

Choose a reason for hiding this comment

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

That would make sense, since it'll cover notable_trait and notable_impl into one

Choose a reason for hiding this comment

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

If it were to simply be called notable, I wonder if there would be usefulness in extending it to other areas too... notable fields? Is that useful? I don't know, but maybe it's worth exploring...

Perhaps notable items in e.g. a module would be useful. I have a module defining many structs and enums (100+) that doesn't make sense to split up, I wonder if notability is relevant to that or not.

@Dylan-DPC

@conradludgate if you can resolve the conflicts we can get this merged

@bors

@JohnCSimon

ping from triage:
@conradludgate - looks like this is ready for review

FYI: when a PR is ready for review, send a message containing
@rustbot ready to switch to S-waiting-on-review so the PR is in the reviewer's backlog, else it sits idle.

@rustbot ready

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Jun 19, 2022

@Mark-Simulacrum

Closing in favor of #94909, since that says it is a successor to this PR.

@conradludgate

Closing in favor of #94909, since that says it is a successor to this PR.

Sorry, That's not what I meant by successor - I meant this PR is a dependency

@bors

@Dylan-DPC Dylan-DPC added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Feb 22, 2023

@rustbot

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

@conradludgate

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Feb 22, 2023

@rust-log-analyzer

This comment has been minimized.

@pitaj

@GuillaumeGomez

@pitaj pitaj added the needs-fcp

This change is insta-stable, so needs a completed FCP to proceed.

label

Apr 30, 2023

@pitaj

Are you implying that this is waiting for the author to implement the change to just notable? Or do you mean that a decision there still needs to be reached?

@GuillaumeGomez

I think it'd be better to have the team saying it's ok for the renaming, then the code update and finally the FCP.

@pitaj pitaj added the S-waiting-on-team

Status: Awaiting decision from the relevant subteam (see the T- label).

label

Apr 30, 2023

@bors

@conradludgate

@rustbot

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

Some changes occurred in src/tools/rust-analyzer

cc @rust-lang/rust-analyzer

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha

@conradludgate

I have rebased to resolve conflicts. I tentatively renamed the attribute but haven't touched the feature name.

@lnicola

The RA changes don't look particularly problematic (this time), but we prefer having them merged through the RA upstream when possible (i.e. when they're not necessary to keep the code building or running). That file is generated automatically, and this can make synchronizing the subtree really annoying.

@conradludgate

I wasn't sure about the RA stuff. I mostly did a find-replace and then cleaned up all the changes. I'll remove those changes from the commit then, thanks for letting me know

@rust-log-analyzer

This comment has been minimized.

@conradludgate

@notriddle

I don't have a strong opinion on renaming it, but I am in favor of allowing individual impls to be marked as notable.

@bors

@hkBst

@GuillaumeGomez IIUC this is blocked on a naming decision by the rustdoc team and FCP.

Labels

needs-fcp

This change is insta-stable, so needs a completed FCP to proceed.

S-waiting-on-team

Status: Awaiting decision from the relevant subteam (see the T- label).

T-rustdoc

Relevant to the rustdoc team, which will review and decide on the PR/issue.