diff options
| author | Amos Wenger <amoswenger@gmail.com> | 2022-07-25 16:59:10 +0200 |
|---|---|---|
| committer | Amos Wenger <amoswenger@gmail.com> | 2022-07-25 16:59:10 +0200 |
| commit | 696775153dffaa701bcabe67b5fe601db862c4f4 (patch) | |
| tree | 40061a9a2ebee978557d63717d1d79c23c01b5bb | |
| parent | 74a2fad5e6b6193842fe52b50ee174736efb266d (diff) | |
| download | rust-696775153dffaa701bcabe67b5fe601db862c4f4.tar.gz rust-696775153dffaa701bcabe67b5fe601db862c4f4.zip | |
Fix mix up in comments
| -rw-r--r-- | crates/project-model/src/sysroot.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/project-model/src/sysroot.rs b/crates/project-model/src/sysroot.rs index b17a59b10bb..362bb0f5e79 100644 --- a/crates/project-model/src/sysroot.rs +++ b/crates/project-model/src/sysroot.rs @@ -36,19 +36,19 @@ impl ops::Index<SysrootCrate> for Sysroot { } impl Sysroot { - /// Returns sysroot directory, where `bin/`, `etc/`, `lib/`, `libexec/` + /// Returns sysroot "root" directory, where `bin/`, `etc/`, `lib/`, `libexec/` /// subfolder live, like: - /// `$HOME/.rustup/toolchains/nightly-2022-07-23-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library` - pub fn src_root(&self) -> &AbsPath { - &self.src_root - } - - /// Returns sysroot "src" directory, where stdlib sources are located, like: /// `$HOME/.rustup/toolchains/nightly-2022-07-23-x86_64-unknown-linux-gnu` pub fn root(&self) -> &AbsPath { &self.root } + /// Returns the sysroot "source" directory, where stdlib sources are located, like: + /// `$HOME/.rustup/toolchains/nightly-2022-07-23-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library` + pub fn src_root(&self) -> &AbsPath { + &self.src_root + } + pub fn public_deps(&self) -> impl Iterator<Item = (&'static str, SysrootCrate, bool)> + '_ { // core is added as a dependency before std in order to // mimic rustcs dependency order |
