Improve comments
This commit is contained in:
parent
8488e8aed9
commit
374024336a
6 changed files with 14 additions and 3 deletions
|
@ -111,8 +111,9 @@ pub(crate) struct CrateMetadata {
|
||||||
dep_kind: Lock<CrateDepKind>,
|
dep_kind: Lock<CrateDepKind>,
|
||||||
/// Filesystem location of this crate.
|
/// Filesystem location of this crate.
|
||||||
source: Lrc<CrateSource>,
|
source: Lrc<CrateSource>,
|
||||||
/// Whether or not this crate should be consider a private dependency
|
/// Whether or not this crate should be consider a private dependency.
|
||||||
/// for purposes of the 'exported_private_dependencies' lint
|
/// Used by the 'exported_private_dependencies' lint, and for determining
|
||||||
|
/// whether to emit suggestions that reference this crate.
|
||||||
private_dep: Lock<bool>,
|
private_dep: Lock<bool>,
|
||||||
/// The hash for the host proc macro. Used to support `-Z dual-proc-macro`.
|
/// The hash for the host proc macro. Used to support `-Z dual-proc-macro`.
|
||||||
host_hash: Option<Svh>,
|
host_hash: Option<Svh>,
|
||||||
|
|
|
@ -74,6 +74,8 @@ fn workspace_members(build: &Build) -> impl Iterator<Item = Package> {
|
||||||
let collect_metadata = |manifest_path| {
|
let collect_metadata = |manifest_path| {
|
||||||
let mut cargo = Command::new(&build.initial_cargo);
|
let mut cargo = Command::new(&build.initial_cargo);
|
||||||
cargo
|
cargo
|
||||||
|
// Will read the libstd Cargo.toml
|
||||||
|
// which uses the unstable `public-dependency` feature.
|
||||||
.env("RUSTC_BOOTSTRAP", "1")
|
.env("RUSTC_BOOTSTRAP", "1")
|
||||||
.arg("metadata")
|
.arg("metadata")
|
||||||
.arg("--format-version")
|
.arg("--format-version")
|
||||||
|
|
|
@ -11,6 +11,8 @@ abs_path() {
|
||||||
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Running cargo will read the libstd Cargo.toml
|
||||||
|
# which uses the unstable `public-dependency` feature.
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
src_dir="$(abs_path $(dirname "$0"))"
|
src_dir="$(abs_path $(dirname "$0"))"
|
||||||
|
|
|
@ -11,6 +11,8 @@ abs_path() {
|
||||||
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Running cargo will read the libstd Cargo.toml
|
||||||
|
# which uses the unstable `public-dependency` feature.
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
src_dir="$(abs_path $(dirname "$0"))"
|
src_dir="$(abs_path $(dirname "$0"))"
|
||||||
|
|
|
@ -11,6 +11,8 @@ abs_path() {
|
||||||
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
(unset CDPATH && cd "$path" > /dev/null && pwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Running cargo will read the libstd Cargo.toml
|
||||||
|
# which uses the unstable `public-dependency` feature.
|
||||||
export RUSTC_BOOTSTRAP=1
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
src_dir="$(abs_path $(dirname "$0"))"
|
src_dir="$(abs_path $(dirname "$0"))"
|
||||||
|
|
|
@ -16,7 +16,9 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::thread::{self, scope, ScopedJoinHandle};
|
use std::thread::{self, scope, ScopedJoinHandle};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Allow using unstable cargo features in the standard library.
|
// Running Cargo will read the libstd Cargo.toml
|
||||||
|
// which uses the unstable `public-dependency` feature.
|
||||||
|
//
|
||||||
// `setenv` might not be thread safe, so run it before using multiple threads.
|
// `setenv` might not be thread safe, so run it before using multiple threads.
|
||||||
env::set_var("RUSTC_BOOTSTRAP", "1");
|
env::set_var("RUSTC_BOOTSTRAP", "1");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue