Get tests to pass
This commit is contained in:
parent
c5b9d22b02
commit
523de296cc
@ -39,4 +39,4 @@ syn = { version = "1", features = ["full"] }
|
|||||||
[features]
|
[features]
|
||||||
deny-warnings = []
|
deny-warnings = []
|
||||||
# build clippy with internal lints enabled, off by default
|
# build clippy with internal lints enabled, off by default
|
||||||
internal-lints = []
|
internal-lints = ["clippy_utils/internal-lints"]
|
||||||
|
@ -22,3 +22,6 @@ rustc-semver="1.1.0"
|
|||||||
url = { version = "2.1.0", features = ["serde"] }
|
url = { version = "2.1.0", features = ["serde"] }
|
||||||
quote = "1"
|
quote = "1"
|
||||||
syn = { version = "1", features = ["full"] }
|
syn = { version = "1", features = ["full"] }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
internal-lints = []
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::consts::{constant_simple, Constant};
|
use crate::consts::{constant_simple, Constant};
|
||||||
use crate::{
|
use crate::{
|
||||||
is_expn_of, match_def_path, match_qpath, match_type, method_calls, path_to_res, paths, run_lints, snippet,
|
declare_clippy_lint, is_expn_of, match_def_path, match_qpath, match_type, method_calls, path_to_res, paths,
|
||||||
span_lint, span_lint_and_help, span_lint_and_sugg, SpanlessEq,
|
run_lints, snippet, span_lint, span_lint_and_help, span_lint_and_sugg, SpanlessEq,
|
||||||
};
|
};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc_ast::ast::{Crate as AstCrate, ItemKind, LitKind, NodeId};
|
use rustc_ast::ast::{Crate as AstCrate, ItemKind, LitKind, NodeId};
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(stmt_expr_attributes)]
|
#![feature(stmt_expr_attributes)]
|
||||||
#![feature(control_flow_enum)]
|
#![feature(control_flow_enum)]
|
||||||
|
#![recursion_limit = "512"]
|
||||||
|
#![allow(clippy::missing_errors_doc, clippy::missing_panics_doc, clippy::must_use_candidate)]
|
||||||
|
|
||||||
// FIXME: switch to something more ergonomic here, once available.
|
// FIXME: switch to something more ergonomic here, once available.
|
||||||
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user