Fix mix up in comments
This commit is contained in:
parent
74a2fad5e6
commit
696775153d
@ -36,19 +36,19 @@ impl ops::Index<SysrootCrate> for Sysroot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Sysroot {
|
impl Sysroot {
|
||||||
/// Returns sysroot directory, where `bin/`, `etc/`, `lib/`, `libexec/`
|
/// Returns sysroot "root" directory, where `bin/`, `etc/`, `lib/`, `libexec/`
|
||||||
/// subfolder live, like:
|
/// 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`
|
/// `$HOME/.rustup/toolchains/nightly-2022-07-23-x86_64-unknown-linux-gnu`
|
||||||
pub fn root(&self) -> &AbsPath {
|
pub fn root(&self) -> &AbsPath {
|
||||||
&self.root
|
&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)> + '_ {
|
pub fn public_deps(&self) -> impl Iterator<Item = (&'static str, SysrootCrate, bool)> + '_ {
|
||||||
// core is added as a dependency before std in order to
|
// core is added as a dependency before std in order to
|
||||||
// mimic rustcs dependency order
|
// mimic rustcs dependency order
|
||||||
|
Loading…
x
Reference in New Issue
Block a user