Adapt codebase to the tool_lints
This commit is contained in:
committed by
Manish Goregaokar
parent
cfd4c538d4
commit
f3bb161f0e
@@ -5,9 +5,10 @@
|
||||
#![feature(slice_patterns)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![feature(range_contains)]
|
||||
#![allow(unknown_lints, shadow_reuse, missing_docs_in_private_items)]
|
||||
#![allow(unknown_lints, clippy::shadow_reuse, clippy::missing_docs_in_private_items)]
|
||||
#![recursion_limit = "256"]
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
#![feature(tool_lints)]
|
||||
#![warn(rust_2018_idioms)]
|
||||
|
||||
use toml;
|
||||
@@ -933,7 +934,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
|
||||
|
||||
// only exists to let the dogfood integration test works.
|
||||
// Don't run clippy as an executable directly
|
||||
#[allow(dead_code, print_stdout)]
|
||||
#[allow(dead_code, clippy::print_stdout)]
|
||||
fn main() {
|
||||
panic!("Please use the cargo-clippy executable");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user