rustc-dev-guide
rustc-dev-guide copied to clipboard
A guide to how rustc works and how to contribute to it.
https://github.com/rust-lang/rustc-dev-guide/blob/master/examples/rustc-driver-example.rs is a great example to get me started using `rustc_interface`, but I am stuck on how to point this query towards a file that references another crate. I want...
### Location https://rustc-dev-guide.rust-lang.org/overview.html ### Summary @akarahdev wrote a very nice top-level overview [on reddit](https://www.reddit.com/r/rust/comments/13zdmvc/how_rust_transforms_into_machine_code/) which I think could be used to improve the existing (and a bit outdated) [overview of...
https://github.com/rust-lang/rustc-dev-guide/blob/f1e637883fafeb83bdd5906ee7f467e4d35b7337/src/building/how-to-build-and-run.md?plain=1#L177 This instruction fails: ``` ~/code/rust$ ./x.py build library ... Build completed successfully in 0:04:44 ~/code/rust$ rustup toolchain link stage0 build/host/stage0-sysroot/ error: not a directory: 'build/host/stage0-sysroot/bin' ~/code/rust$ find build -name...
it shows a useful command in the 'detailed-query' view: https://perf.rust-lang.org/detailed-query.html?commit=4b87ed9d0f18166a26aadb5289bac004e058b90f&base_commit=2034b6d23ca18311a23273f2f08c381a04fa05d9&benchmark=serde_derive-1.0.136-check&scenario=incr-unchanged and there's instructions on zulip for how to build from source to get debuginfo: https://rust-lang.zulipchat.com/#narrow/stream/247081-t-compiler.2Fperformance/topic/annotations.20for.20cachegrind.20diff.3F
Cannot seem to launch the codelldb to debug rustc on windows. Everything is extremely slow (probably due to the 100GB+ build data) It's just stuck. maybe I'm doing something wrong?...
https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd/topic/splat.20no.20longer.20compiles.20for.20release.20builds/near/352702343 @bjorn3
this is what I have so far, might be something more reliable. doesn't work before ~1.65. ``` ; rustc_version_bump=$(git log --format=%H -n1 -G CURRENT_RUSTC_VERSION origin/beta -- compiler/rustc_feature/src/accepted.rs) ; git log...
https://rustc-dev-guide.rust-lang.org/contributing.html is really unhelpful. There's a link for "External Dependencies", but: 1. I wouldn't guess that it'd mean "things we have embedded in our repository but should be treated as...
Some things that would be nice to include: - a link to https://gcc.gnu.org/wiki/DebugFission - how debug info works (at a *very* high level, no need to get into target-specific stuff)...
Following from #1458. This may be too much to review. So I will extract smaller pull requests from it and rebase as they are merged. The first of them, #1555,...