Skip to content

Commit d9c60f4

Browse files
committed
Address review feedback
1 parent 7d87b53 commit d9c60f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/librustc/driver/config.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ pub struct Options {
9797
pub color: ColorConfig,
9898
pub externs: HashMap<String, Vec<String>>,
9999
pub crate_name: Option<String>,
100+
/// An optional name to use as the crate for std during std injection,
101+
/// written `extern crate std = "name"`. Default to "std". Used by
102+
/// out-of-tree drivers.
100103
pub alt_std_name: Option<String>
101104
}
102105

@@ -793,10 +796,10 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
793796
}
794797
}
795798

796-
pub fn parse_crate_types_from_list(crate_types_list_list: Vec<String>) -> Result<Vec<CrateType>, String> {
799+
pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateType>, String> {
797800

798801
let mut crate_types: Vec<CrateType> = Vec::new();
799-
for unparsed_crate_type in crate_types_list_list.iter() {
802+
for unparsed_crate_type in list_list.iter() {
800803
for part in unparsed_crate_type.as_slice().split(',') {
801804
let new_part = match part {
802805
"lib" => default_lib_output(),

src/librustc/driver/driver.rs

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pub fn phase_1_parse_input(sess: &Session, cfg: ast::CrateConfig, input: &Input)
181181
// modified
182182

183183
/// Run the "early phases" of the compiler: initial `cfg` processing,
184+
/// loading compiler plugins (including those from `addl_plugins`),
184185
/// syntax expansion, secondary `cfg` expansion, synthesis of a test
185186
/// harness if one is to be provided and injection of a dependency on the
186187
/// standard library and prelude.

0 commit comments

Comments
 (0)