Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation for new stable features can be hard to find (e.g. for associated const) #44894
Comments
TimNN
added
C-enhancement
T-doc
labels
Oct 1, 2017
steveklabnik
added
the
I-nominated
label
Oct 31, 2017
This comment has been minimized.
This comment has been minimized.
|
There's a lot here; let's talk about it at a future doc meeting. Some of this is covered by in-progress plans, some not. |
This comment has been minimized.
This comment has been minimized.
|
We talked about this in the docs team meeting today, and a lot of discussion came out of it. Primarily, i see a couple major things going on here:
They're fairly related, but the latter is effectively a specific instance of the former. The suggestions that were raised for this are fairly far-reaching, and specifically need to pull in more people than "just the docs team" to properly deal with it. To wit:
These are Big Projects, and especially with the impl period going on it's unlikely they'll be addressed until the new year, barring a small start on the "stabilized feature flag listing" without pulling it into any outside process. Still, the problem is real and this is what we came up with in the meeting. |
QuietMisdreavus
removed
the
I-nominated
label
Nov 7, 2017
steveklabnik
added
the
P-low
label
Nov 21, 2017
This comment has been minimized.
This comment has been minimized.
|
Currently tagging this as low because it relies on so much other work; once we do that work, we can upgrade this. One last thing to add to what @QuietMisdreavus said; once we implement https://github.com/rust-lang/rfcs/blob/master/text/1826-change-doc-default-urls.md this work will be easier to do |
This comment has been minimized.
This comment has been minimized.
|
Triage: no changes here |
This was referenced Jan 28, 2019
This comment has been minimized.
This comment has been minimized.
|
This is still a widespread problem. I believe it can be quickly solved by adding
rule to the The Here's a merge of the current live
|
robinst commentedSep 28, 2017
Background
I was just changing some code to use associated consts for a struct. I wasn't sure what the exact syntax was, so I was looking for the documentation about it. I remembered that it was recently stabilized, so I googled for "rust associated constants". Here's the top results:
The first result looked good, but because it had "1.7.0" in the URL and it was in a "Nightly Rust" section, I wasn't sure whether this feature had changed in the time that it was stabilized, so I continued my search.
The next result was the tracking issue. I tried to find a definitive statement there as to when it was actually stabilized, but couldn't find one. Also there were no links to the documentation.
So then I went looking for the Rust 1.20 announcement post, and it had some documentation. That helped. But I was still looking for something that is not a blog post, something better to link to.
So I went back to the tracking issue and found a link to an issue to add documentation to the reference. Finally, I dug up this: https://doc.rust-lang.org/stable/reference/items.html#associated-constants That's what I wanted to find in the beginning!
Possible improvements
I think there are a couple of things that could have helped me find this quicker:
All these things would make it more likely for people to find the right documentation and not have to wonder about when a feature was stabilized.
What do you think? I'm not sure if that's something that warrants an RFC or if there are any existing checklists in place for what to do when stabilizing a feature (which we could add the above things to).