We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aa383 commit 1c7fb0fCopy full SHA for 1c7fb0f
clippy_lints/src/exit.rs
@@ -56,10 +56,6 @@ declare_lint_pass!(Exit => [EXIT]);
56
57
impl<'tcx> LateLintPass<'tcx> for Exit {
58
fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
59
- if cx.sess().is_test_crate() {
60
- return;
61
- }
62
-
63
if let ExprKind::Call(path_expr, [_]) = e.kind
64
&& let ExprKind::Path(ref path) = path_expr.kind
65
&& let Some(def_id) = cx.qpath_res(path, path_expr.hir_id).opt_def_id()
0 commit comments