Skip to content

Commit

Permalink
appease tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Sep 26, 2016
1 parent 0dc2a95 commit cf1fc2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/librustc/session/config.rs
Expand Up @@ -1572,7 +1572,8 @@ pub mod nightly_options {

pub fn check_nightly_options(matches: &getopts::Matches, flags: &[RustcOptGroup]) {
let has_z_unstable_option = matches.opt_strs("Z").iter().any(|x| *x == "unstable-options");
let really_allows_unstable_options = UnstableFeatures::from_environment().is_nightly_build();
let really_allows_unstable_options = UnstableFeatures::from_environment()
.is_nightly_build();

for opt in flags.iter() {
if opt.stability == OptionStability::Stable {
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_driver/lib.rs
Expand Up @@ -649,7 +649,8 @@ impl RustcDefaultCalls {
}
}
PrintRequest::Cfg => {
let allow_unstable_cfg = UnstableFeatures::from_environment().is_nightly_build();
let allow_unstable_cfg = UnstableFeatures::from_environment()
.is_nightly_build();

for cfg in cfg {
if !allow_unstable_cfg && GatedCfg::gate(&*cfg).is_some() {
Expand Down

0 comments on commit cf1fc2c

Please sign in to comment.