diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-04-30 18:39:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-30 18:39:22 +0800 |
| commit | 7135a9f2374635dfe5e1b1e2dc173895271504c0 (patch) | |
| tree | 4f5f635d96587d76fa6220e41eaa2b2fa720e0fd | |
| parent | 029a2c4746df63a67f585bdd108b77b232344336 (diff) | |
| parent | 48bbf5a91baeb5f1493ec00c7941bf08566ceb47 (diff) | |
| download | rust-7135a9f2374635dfe5e1b1e2dc173895271504c0.tar.gz rust-7135a9f2374635dfe5e1b1e2dc173895271504c0.zip | |
Merge pull request #2366 from rust-lang/tshepang-patch-1
| -rw-r--r-- | src/doc/rustc-dev-guide/src/compiler-src.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/compiler-src.md b/src/doc/rustc-dev-guide/src/compiler-src.md index 0d3cbebb4da..00aa9622684 100644 --- a/src/doc/rustc-dev-guide/src/compiler-src.md +++ b/src/doc/rustc-dev-guide/src/compiler-src.md @@ -86,8 +86,12 @@ something like this: [`Span`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/struct.Span.html [main]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_driver/fn.main.html -You can see the exact dependencies by reading the [`Cargo.toml`] for the various -crates, just like a normal Rust crate. +You can see the exact dependencies by running `cargo tree`, +just like you would for any other Rust package: + +```console +cargo tree --package rustc_driver +``` One final thing: [`src/llvm-project`] is a submodule for our fork of LLVM. During bootstrapping, LLVM is built and the [`compiler/rustc_llvm`] crate |
