-
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
Do not display hidden types, fixes issue 23912 #46359
Conversation
It looks like would just hide the On the other hand, the test you have here is useful, but i think it would be better if the trait that was |
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.
You have to be very careful when writing @!has
tests because typos mean the test passes without testing anything 😉.
// @has foo/struct.Bar.html '//*[@id="impl-Bam"]' 'impl Bam for Bar' | ||
// @has foo/trait.Bam.html '//*[@id="implementors-list"]' 'impl Bam for Bar' | ||
impl Bam for Bar {} | ||
// @!has foo/struct.Bar.html '//*[@id="iimplementors-list"]' 'impl Bam for Hidden' |
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.
struct.Bar.html
-> trait.Bam.html
iimplementors-list
-> implementors-list
|
||
struct Hidden; | ||
|
||
// @!has foo/struct.Bar.html '//*[@id="impl-Bar"]' 'impl Foo for Bar' |
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.
impl-Bar
-> impl-Foo
@ollie27: Arf, you're right! Thanks! |
@GuillaumeGomez @QuietMisdreavus Is this PR still needed? #23912 has been closed by #44026. |
@kennytm I want it for the test test it adds. If @GuillaumeGomez can take out the change in |
Friendly ping to keep this on your radar @GuillaumeGomez! |
Going back on it this week-end. |
38429a6
to
443d6a6
Compare
Updated. |
#![crate_name = "foo"] | ||
|
||
#[doc(hidden)] | ||
trait Foo {} |
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.
Tagging a private item with #[doc(hidden)]
has no effect when you're not changing which passes are run. Can you make this pub trait Foo
instead?
443d6a6
to
03530ee
Compare
Updated. |
r=me pending travis This is... kinda unrelated to #23912 now, but as i said, the test is still useful. |
@bors r+ rollup |
📌 Commit 03530ee has been approved by |
… r=QuietMisdreavus Do not display hidden types, fixes issue 23912 Fixes rust-lang#23912. r? @QuietMisdreavus (It's the one I was talking about a few days ago, just close it if it's useless.)
Fixes #23912.
r? @QuietMisdreavus
(It's the one I was talking about a few days ago, just close it if it's useless.)