Skip to content

Commit 523de29

Browse files
committed
Get tests to pass
1 parent c5b9d22 commit 523de29

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ syn = { version = "1", features = ["full"] }
3939
[features]
4040
deny-warnings = []
4141
# build clippy with internal lints enabled, off by default
42-
internal-lints = []
42+
internal-lints = ["clippy_utils/internal-lints"]

clippy_utils/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ rustc-semver="1.1.0"
2222
url = { version = "2.1.0", features = ["serde"] }
2323
quote = "1"
2424
syn = { version = "1", features = ["full"] }
25+
26+
[features]
27+
internal-lints = []

clippy_utils/src/internal_lints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::consts::{constant_simple, Constant};
22
use crate::{
3-
is_expn_of, match_def_path, match_qpath, match_type, method_calls, path_to_res, paths, run_lints, snippet,
4-
span_lint, span_lint_and_help, span_lint_and_sugg, SpanlessEq,
3+
declare_clippy_lint, is_expn_of, match_def_path, match_qpath, match_type, method_calls, path_to_res, paths,
4+
run_lints, snippet, span_lint, span_lint_and_help, span_lint_and_sugg, SpanlessEq,
55
};
66
use if_chain::if_chain;
77
use rustc_ast::ast::{Crate as AstCrate, ItemKind, LitKind, NodeId};

clippy_utils/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#![feature(rustc_private)]
1111
#![feature(stmt_expr_attributes)]
1212
#![feature(control_flow_enum)]
13+
#![recursion_limit = "512"]
14+
#![allow(clippy::missing_errors_doc, clippy::missing_panics_doc, clippy::must_use_candidate)]
1315

1416
// FIXME: switch to something more ergonomic here, once available.
1517
// (Currently there is no way to opt into sysroot crates without `extern crate`.)

0 commit comments

Comments
 (0)