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 upLink to internal rustdocs #100
Comments
mark-i-m
added
help wanted
Easy
labels
Mar 27, 2018
This comment has been minimized.
This comment has been minimized.
|
@Michael-F-Bryan - I'm new to rust. Since I see this is Easy tagged issue shall I take this issue? |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg if you'd like to give it a go that's fine with me, I'm also happy to mentor or answer any questions you encounter while trying to tick this issue off We'll need to wait for rust-lang/rust-central-station#40 to be fully merged, but after that it should be relatively straightforward. If you subscribe to that issue, GitHub should send you notifications when it is resolved and you can get started. |
This comment has been minimized.
This comment has been minimized.
|
@Michael-F-Bryan _ Thanks for mentoring me and I'm happy to take your guidance as I'm new to rust. |
This comment has been minimized.
This comment has been minimized.
|
It should mainly be a case of looking for all links to source files in the The easiest way would be to use a tool like grep or ripgrep and search for anything with
You can see that |
This comment has been minimized.
This comment has been minimized.
|
To clarify, you are looking for links in this repo to the other repo :) |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the suggestion @mark-i-m @Michael-F-Bryan. When I searched for here for I should have get the nightly documentation link instead of 1.1.0 documentation, correct? |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg yes. That version of the docs looks quite outdated ( Now we've released EDIT: Looks like the PR was merged |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg IIUC, the new docs should be available tomorrow after the next nightly is released. |
mark-i-m
removed
the
help wanted
label
Apr 2, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks @Michael-F-Bryan @mark-i-m.
|
This comment has been minimized.
This comment has been minimized.
Hmm... that link looks pretty outdated too. rust 1.1 was a long time ago. Tomorrow all of the docs should be up (or so I am told). They should look like normal rustdocs and should be hosted at doc.rust-lang.org/nightly/nightly-rustc So tomorrow (hopefully) you should be able to go to doc.rust-lang.org/nightly/nightly-rustc and just use the normal rustdoc search box to find everything (hopefully).
Ah, they're all relative links. If you use the hosted version here the links should work. Thanks for pointing this out though. The intent is for people to view the guide as a book (via that host version). Do you think we should fix the links so that they work on github too? It would be a bit of a tedious piece of work, but it's possible... |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m - Sure. I will try to fix 404 errors in github as well. I will wait for a day till document release and will let you know if I need any help. |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg It looks like there was a bug, which should (hopefully) be fixed for tomorrow. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks @Michael-F-Bryan @mark-i-m I will work on this and submit PR. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks! Nice job :)
Hmm... I can't find those either. I asked a followup on rust-lang/rust-central-station#40
Do you mean with respect to these links that you mentioned before?
These should be links to hosted version of the rustc guide itself. I don't think we were expecting anyone to use the github interface to view the book. I'm not sure if we want to make these links absolute or leave them relative as they are... I opened #109 to deal with that; for now, let's leave them as-is. |
This comment has been minimized.
This comment has been minimized.
|
Also, I will try to look at the PR soon |
This comment has been minimized.
This comment has been minimized.
|
Ok, that was fast. The reason those items you listed are not in the hosted docs is that they are private, whereas rustdoc generates documentation for only public items by default. There is active discussion on generating docs for these private items in rust-lang/rust#29893. |
This comment has been minimized.
This comment has been minimized.
|
sure Thanks @mark-i-m !!! |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg I merged your PR :) It appears that private modules are now documented, so I think you should be able to find the remaining items. Are you still interested in working on this? |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m |
This comment has been minimized.
This comment has been minimized.
That's right |
This comment has been minimized.
This comment has been minimized.
|
Hey @mark-i-m I'm still not able to find documentation for below items.
All of them looks like tests but I don't know how to get its documentation link. |
rajcspsg
referenced this issue
Apr 7, 2018
Merged
[WIP] update nightly documentation for issue#100-b #111
This comment has been minimized.
This comment has been minimized.
|
Thanks :) I think anything in src/tools is not part of the compiler proper, so it will not be documented. Likewise, anything in src/test is a test, rather than part of the compiler itself, so those will not be documented either. I think we can leave these links for now. For (5), I think we can use the following link: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/index.html |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m - I've updated the documentation link for https://github.com/rust-lang/rust/tree/master/src/librustc_driver/lib.rs in the PR. |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m @Michael-F-Bryan I think still 2 below items are yet to completed in this issue, correct? |
This comment has been minimized.
This comment has been minimized.
|
@rajcspsg Yes, that's correct |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m i may need some pointers to start with. What should be updated in contributing section? |
This comment has been minimized.
This comment has been minimized.
|
Perhaps we can start a "Contributor Tips" section at the end? The first tip can be something like "Whenever referring to a part of the rustc source code, please add a link to the rustc rustdocs. Since these links are checked, it will help us discover when something in the compiler changes and the guide needs to be updated." |
This comment has been minimized.
This comment has been minimized.
|
@Michael-F-Bryan did you have something specific in mind? |
This comment has been minimized.
This comment has been minimized.
|
Ping @Michael-F-Bryan ^^^ |
This comment has been minimized.
This comment has been minimized.
|
Oops, looks like I missed this somehow!
I was just thinking we should mention in the contributor guide that the internal API docs are available online and to link to them where possible. The comment you made sounds pretty good.
|
This comment has been minimized.
This comment has been minimized.
|
Ping @rajcspsg Are you still interested in working on this? |
This comment has been minimized.
This comment has been minimized.
|
I actually have had a lot of trouble looking for the API docs of rustc (are they linked from anywhere? I couldn't easily find it), they should at least be linked in the readme, or have a section somewhere with a link to the docs. FWIW, this is the link: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ |
This comment has been minimized.
This comment has been minimized.
|
I agree. The docs are surprisingly hard to Google. |
This comment has been minimized.
This comment has been minimized.
|
Wow, there are a lot of comments here. I recently opened up #189, which added links to the rustdoc for the HIR section. I was thinking we should open a fresh issue (this one is perhaps too cluttered) and make it into a "quest issue". Basically, make a checklist of modules that need work, and issue out a call to try to get people involved. Seems like a nice "starter point". But maybe that's not necessary, even? |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis @mark-i-m Hello guys. I'm really sorry that I'm out for a while due to few personal commitments. I think it would be good to open new issue for pending things for this PR. |
This comment has been minimized.
This comment has been minimized.
|
I'll try to curate such a list and open a new issue sometime soon. I'm not sure if I will have time today, though. I will post back here soon. |
rajcspsg
referenced this issue
Sep 30, 2018
Merged
issue-130 copy contents related x.py from rust-forge to rustc-guide #195
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hmm... do we ever mention where they can be found? (https://doc.rust-lang.org/nightly/nightly-rustc/rustc/) Sorry for the delay on this. I have been pretty swamped for the past few weeks (and will probably continue to be swamped until at least Oct 12)... I appreciate your patience! |
This was referenced Oct 13, 2018
This comment has been minimized.
This comment has been minimized.
|
Ok, so I opened #209 to track the links @rajcspsg mentioned in #100 (comment). I'm not really sure how to make progress there TBH, but I don't want to lose the list of links. I also opened #208 to update the readme, as per the checklist in the OP. @Michael-F-Bryan @rajcspsg let me know what you think. @rajcspsg I think the only thing left here is to update the intro section of the guide itself with a note and link to the compiler rustdocs. |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m shall we mark |
This comment has been minimized.
This comment has been minimized.
|
Hmm... do we ever mention where they can be found? (https://doc.rust-lang.org/nightly/nightly-rustc/rustc/) |
This comment has been minimized.
This comment has been minimized.
|
@mark-i-m I will update and send PR for that. I have a question. |
This comment has been minimized.
This comment has been minimized.
|
Perhaps both? compiler-documenting seems like a logical place, but I would also like the link to be highly-visible, since they are really useful. |
rajcspsg
referenced this issue
Oct 24, 2018
Merged
issue_100_4 Updated the rustc documentation location #218
This comment has been minimized.
This comment has been minimized.
|
Hooray! Nice job @rajcspsg! This is a major improvement to the guide! |
mark-i-m
closed this
Oct 25, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks @mark-i-m for accepting my PR :) |
Michael-F-Bryan commentedMar 25, 2018
•
edited by mark-i-m
When rust-lang/rust-central-station#40 lands we'll have a stable location which contains internal API documentation (i.e. the equivalent of🎉
./x.py docwithcrate-docs = true)This means when referring to a particular struct or function we'll be able too link to its API docs instead of linking to the original source file and hoping for the best.
Once that PR is merged we'll need to: