-
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
Derived traits in the standard library are missing stability information #40480
Comments
We never talk about old versions for documentation; if you want to see that version's docs, check out the docs for that version. Thanks, but this is something we just don't do. |
I'm not sure what you mean, there are version numbers all over the page I linked. |
I don't see "version" anywhere there, could you send me a screenshot or something? It's possible I'm just misunderstanding you. |
Ohhhh I see now, you're not talking about in text, you're talking about the stability flags. I believe that implementations are auto-stable, and therefore, don't have the flag, and therefore, don't have this. So this is more of a feature request. Sorry for the misunderstanding here. |
The |
Likely because the trait itself was stabilized on that version number ( Agreed that having a marker on impls would be useful. |
Ok, looking at the source, it seems the cause is that you can't specify a stability attribute for a |
Triage: no changes I'm aware of. |
I don't think this is really a rustdoc bug - the information just isn't available in the source code. I'm not sure who's in charge of That said, I think a syntax like |
It should be available, starting from #29152 stability attributes are copied from the item to derived impls. |
#[stable(feature = "name", since = "version")]
#[derive(Clone)]
struct S;
|
Hmm, that seems like the wrong behavior though? |
Ah, I see what is the issue now, the reported stabilization version for the impl is incorrect exactly because it's inherited from the item. I don't think it's something important enough to extend derive syntax for (or do anything else really). |
impl Default for Duration
was added in 1.15 but the current documentation doesn't indicate it wasn't available before that.The text was updated successfully, but these errors were encountered: