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 upmore forge docs for mentoring are needed #40902
Comments
nikomatsakis
added
E-help-wanted
T-doc
labels
Mar 29, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This would be wonderful and amazing and I really, really want it. |
This comment has been minimized.
This comment has been minimized.
|
A list of the various debugging outputs the compiler supports (--unpretty, MIR dump, CGU partitions, dep-graph etc):
UPDATE(nikomatsakis): promoted to main comment |
This comment has been minimized.
This comment has been minimized.
|
I think we talked about this a while ago but didn't consider it as a priority back then. Might be worth (a lot!!) to give it another try. |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis i'm assuming you filed this here and not against https://github.com/rust-lang-nursery/rust-forge for visibility reasons? technically it should be over there |
This comment has been minimized.
This comment has been minimized.
|
How to run rustc in gdb (inside the rustbuild environment) has been a question that commonly came up. Its non trivial because of all the env var setting. See also #39888 |
This comment has been minimized.
This comment has been minimized.
|
Another useful inclusion would be the "nuke the tools directories" command. I use |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis , @steveklabnik as a followup to https://internals.rust-lang.org/t/understanding-the-compiler/5012 I would like to help with this. If I were to start writing some docs for this, which tools/markup should I use and where should it be hosted? A side note, I am not familiar with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I talked with @nikomatsakis about this at the Boston Rust meetup and he told me to write up a list for this. Here are a few things I think should also be covered:
I'm sure there's more but I feel this would be a good starting point if we want to revitalize rust-forge as a one stop shop for all things rustc. I never had heard about it and it would really help expand helping on the compiler. The Rust community is smart, they just need some documentation to help them along and to contribute. I know I'll be helping out with this, so please let me know how I can help advance the above goals and others. |
This comment has been minimized.
This comment has been minimized.
|
I can help answer qs about internal types for documentation, but probably will never get around to doing it myself. I did do a preliminary pass a few years ago adding basic docs to the most common types. |
This comment has been minimized.
This comment has been minimized.
|
Some thoughts I had:
|
This comment has been minimized.
This comment has been minimized.
|
Please please please official internals docs |
This comment has been minimized.
This comment has been minimized.
|
A write-up on building from source on a Mac particularly the dependencies installation would be great! |
This comment has been minimized.
This comment has been minimized.
|
I'm still working on trying to get forge to self host docs but haven't had enough time to work through the CI stuff yet to get it to build them. |
Mark-Simulacrum
added
the
C-enhancement
label
Jul 27, 2017
steveklabnik
added
the
P-medium
label
Aug 30, 2017
This comment has been minimized.
This comment has been minimized.
|
We now have the rustc guide, and the compiler docs are hosted. I'm going to close this bug, as it's not clear to me that it's usefully tracking anything anymore. |
nikomatsakis commentedMar 29, 2017
•
edited
I've been finding that there are a lot of undocumented things you have to learn if you want to get started hacking on rustc. If we want to encourage people to get involved -- and we do! -- we should try to ensure that things are as well-documented as possible. I think that these docs should all be on The Rust Forge.
This issue is intended as a clearing house to track things that it would be useful to document. Here are some suggestions. I will try to move items from comments up here into the top issue (or feel free to do so yourself, if you have write permissions). Also feel free to open a separate issue on a particular topic (and link to it from here).
--stage 1and--incrementalarguments./x.py build --incremental, it's not obvious where to find compiled executable or how to run itrustcand have it work (that's how my setup works, at least, I should document it publicly)RUST_LOG-Z verbosefor more details