diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index d866ead8e3b6c..87f0c8b67a0ec 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -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 { diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index df2219b73cd81..5089af892859b 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -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() {