diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-10-06 19:39:01 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-10-06 19:39:23 -0700 |
| commit | a585b4e8a0ca41a2445838245f3d44358a82a4dc (patch) | |
| tree | 809087907c3c981feb0e6acfc9d28889f6a8ff35 /src/librustc | |
| parent | 6d15f28986e00e1a1b290b0f0fcf76c3f4e6e261 (diff) | |
| download | rust-a585b4e8a0ca41a2445838245f3d44358a82a4dc.tar.gz rust-a585b4e8a0ca41a2445838245f3d44358a82a4dc.zip | |
Properly handle cfgs in rustdoc
Rustdoc would previously improperly handle key="value" style cfgs, which are notably used for Cargo features.
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/driver/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/driver/config.rs b/src/librustc/driver/config.rs index 9804382dbd9..9ce01250244 100644 --- a/src/librustc/driver/config.rs +++ b/src/librustc/driver/config.rs @@ -630,7 +630,7 @@ pub fn optgroups() -> Vec<getopts::OptGroup> { // Convert strings provided as --cfg [cfgspec] into a crate_cfg -fn parse_cfgspecs(cfgspecs: Vec<String> ) -> ast::CrateConfig { +pub fn parse_cfgspecs(cfgspecs: Vec<String> ) -> ast::CrateConfig { cfgspecs.into_iter().map(|s| { parse::parse_meta_from_source_str("cfgspec".to_string(), s.to_string(), |
