-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
more forge docs for mentoring are needed #40902
Comments
cc @rust-lang/docs |
This would be wonderful and amazing and I really, really want it. |
A list of the various debugging outputs the compiler supports (--unpretty, MIR dump, CGU partitions, dep-graph etc):
UPDATE(nikomatsakis): promoted to main comment |
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. |
@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 |
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 |
Another useful inclusion would be the "nuke the tools directories" command. I use |
@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 |
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. |
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. |
Some thoughts I had:
|
Please please please official internals docs 😄 |
A write-up on building from source on a Mac particularly the dependencies installation would be great! |
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. |
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. |
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 1
and--incremental
arguments./x.py build --incremental
, it's not obvious where to find compiled executable or how to run itrustc
and have it work (that's how my setup works, at least, I should document it publicly)RUST_LOG
-Z verbose
for more detailsThe text was updated successfully, but these errors were encountered: