From 1b2f1c30d9d3a9056ef2bba2903f11c0b90c8338 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Tue, 29 Apr 2025 23:39:06 +0200 Subject: [PATCH] for a more friendly output Also, these are normal Rust things (crates/packages), so remove the word *normal*. --- src/compiler-src.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/compiler-src.md b/src/compiler-src.md index 0d3cbebb..00aa9622 100644 --- a/src/compiler-src.md +++ b/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