Skip to content

Commit 4051b0c

Browse files
committed
fix: mark clippy-preview unstable, remove cruft
1 parent 30da772 commit 4051b0c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/bin/cargo/commands/clippy.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,17 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
8080
return Err(CliError::new(err, 101));
8181
}
8282
};
83+
8384
let mode = CompileMode::Check { test };
8485
let compile_opts = args.compile_options(config, mode, Some(&ws))?;
8586

87+
if !config.cli_unstable().unstable_options {
88+
return Err(failure::format_err!(
89+
"`clippy-preview` is unstable, pass `-Z unstable-options` to enable it"
90+
)
91+
.into());
92+
}
93+
8694
ops::compile(&ws, &compile_opts)?;
8795
Ok(())
8896
}

src/cargo/util/config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ impl Config {
416416
match self.get_env(key)? {
417417
Some(v) => Ok(Some(v)),
418418
None => {
419-
// println!("{:#?}", self);
420419
let config_key = key.to_config();
421420
let o_cv = self.get_cv(&config_key)?;
422421
match o_cv {

0 commit comments

Comments
 (0)