mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-01 09:33:26 +00:00
add doc comment to rustc_cfg::RustcCfgConfig
This commit is contained in:
parent
fad3823a20
commit
912b22fa07
@ -7,6 +7,14 @@ use rustc_hash::FxHashMap;
|
||||
|
||||
use crate::{cfg_flag::CfgFlag, utf8_stdout, ManifestPath, Sysroot};
|
||||
|
||||
/// Determines how `rustc --print cfg` is discovered and invoked.
|
||||
///
|
||||
/// There options are supported:
|
||||
/// - [`RustcCfgConfig::Cargo`], which relies on `cargo rustc --print cfg`
|
||||
/// and `RUSTC_BOOTSTRAP`.
|
||||
/// - [`RustcCfgConfig::Explicit`], which uses an explicit path to the `rustc`
|
||||
/// binary in the sysroot.
|
||||
/// - [`RustcCfgConfig::Discover`], which uses [`toolchain::rustc`].
|
||||
pub(crate) enum RustcCfgConfig<'a> {
|
||||
Cargo(&'a ManifestPath),
|
||||
Explicit(&'a Sysroot),
|
||||
|
Loading…
Reference in New Issue
Block a user