appease tidy
This commit is contained in:
parent
0dc2a95f1e
commit
cf1fc2ce13
2 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue