mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 22:18:40 +00:00
Adjust cfgs
This commit is contained in:
parent
9ac237dce5
commit
1a3192a331
4 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
#![cfg_attr(bootstrap, feature(let_chains))]
|
||||
#![feature(let_else)]
|
||||
#![feature(once_cell)]
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#![feature(control_flow_enum)]
|
||||
#![feature(drain_filter)]
|
||||
#![feature(iter_intersperse)]
|
||||
#![cfg_attr(bootstrap, feature(let_chains))]
|
||||
#![feature(let_else)]
|
||||
#![feature(lint_reasons)]
|
||||
#![feature(never_type)]
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#![feature(box_patterns)]
|
||||
#![feature(control_flow_enum)]
|
||||
#![feature(let_else)]
|
||||
#![cfg_attr(bootstrap, feature(let_chains))]
|
||||
#![feature(lint_reasons)]
|
||||
#![feature(once_cell)]
|
||||
#![feature(rustc_private)]
|
||||
|
|
|
@ -95,7 +95,7 @@ struct ClippyCallbacks {
|
|||
|
||||
impl rustc_driver::Callbacks for ClippyCallbacks {
|
||||
// JUSTIFICATION: necessary in clippy driver to set `mir_opt_level`
|
||||
#[cfg_attr(not(bootstrap), allow(rustc::bad_opt_access))]
|
||||
#[allow(rustc::bad_opt_access)]
|
||||
fn config(&mut self, config: &mut interface::Config) {
|
||||
let previous = config.register_lints.take();
|
||||
let clippy_args_var = self.clippy_args_var.take();
|
||||
|
|
Loading…
Add table
Reference in a new issue