-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
doc(notable_trait) for impls #94904
base: master
Are you sure you want to change the base?
doc(notable_trait) for impls #94904
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Fixed by running |
r? rust-lang/rustdoc |
☔ The latest upstream changes (presumably #95101) made this pull request unmergeable. Please resolve the merge conflicts. |
library/core/src/fmt/mod.rs
Outdated
#[doc(notable_trait)] | ||
impl Write for Formatter<'_> { |
There was a problem hiding this comment.
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
...
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
@conradludgate if you can resolve the conflicts we can get this merged |
8e7f4bf
to
73d1d64
Compare
☔ The latest upstream changes (presumably #97239) made this pull request unmergeable. Please resolve the merge conflicts. |
ping from triage: FYI: when a PR is ready for review, send a message containing @rustbot ready |
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 |
☔ The latest upstream changes (presumably #102384) made this pull request unmergeable. Please resolve the merge conflicts. |
22b1e04
to
f9e18e7
Compare
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
f9e18e7
to
9055128
Compare
@GuillaumeGomez ping from triage |
There is still https://github.com/rust-lang/rust/pull/94904/files#r857187754. But also, cc @rust-lang/rustdoc. In any case it'll require to go through an FCP. |
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? |
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. |
☔ The latest upstream changes (presumably #94748) made this pull request unmergeable. Please resolve the merge conflicts. |
9055128
to
5aa48ae
Compare
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 |
I have rebased to resolve conflicts. I tentatively renamed the attribute but haven't touched the feature name. |
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. |
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 |
2033e9d
to
5c8173c
Compare
This comment has been minimized.
This comment has been minimized.
5c8173c
to
24d3e9b
Compare
I don't have a strong opinion on renaming it, but I am in favor of allowing individual impls to be marked as notable. |
☔ The latest upstream changes (presumably #117180) made this pull request unmergeable. Please resolve the merge conflicts. |
#45040 (comment)
Allows the
#[doc(notable_trait)]
attribute to be used on impls as well as trait definitions.