Skip to content

Commit 8ac8d76

Browse files
committed
Auto merge of #4996 - JohnTitor:rustup, r=matthiaskrgr
Rustup to rust-lang/rust#67803 and rust-lang/rust#67137 changelog: none
2 parents a0fdca5 + 17cfc77 commit 8ac8d76

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

clippy_lints/src/assertions_on_constants.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn match_assert_with_message<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx E
130130
if let Some(begin_panic_call) = &inner_block.expr;
131131
// function call
132132
if let Some(args) = match_function_call(cx, begin_panic_call, &paths::BEGIN_PANIC);
133-
if args.len() == 2;
133+
if args.len() == 1;
134134
// bind the second argument of the `assert!` macro if it exists
135135
if let panic_message = snippet_opt(cx, args[0].span);
136136
// second argument of begin_panic is irrelevant

clippy_lints/src/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use rustc::hir::intravisit as visit;
2+
use rustc::hir::HirIdSet;
23
use rustc::hir::{self, *};
34
use rustc::impl_lint_pass;
45
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
56
use rustc::ty::layout::LayoutOf;
67
use rustc::ty::{self, Ty};
7-
use rustc::util::nodemap::HirIdSet;
88
use rustc_session::declare_tool_lint;
99
use rustc_span::source_map::Span;
1010
use rustc_typeck::expr_use_visitor::*;

clippy_lints/src/new_without_default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use crate::utils::{get_trait_def_id, implements_trait, return_ty, same_tys, span
44
use if_chain::if_chain;
55
use rustc::hir;
66
use rustc::hir::def_id::DefId;
7+
use rustc::hir::HirIdSet;
78
use rustc::impl_lint_pass;
89
use rustc::lint::{in_external_macro, LateContext, LateLintPass, LintArray, LintContext, LintPass};
910
use rustc::ty::{self, Ty};
10-
use rustc::util::nodemap::HirIdSet;
1111
use rustc_errors::Applicability;
1212
use rustc_session::declare_tool_lint;
1313
use rustc_span::source_map::Span;

clippy_lints/src/panic_unimplemented.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PanicUnimplemented {
9898
if let ExprKind::Block(ref block, _) = expr.kind;
9999
if let Some(ref ex) = block.expr;
100100
if let Some(params) = match_function_call(cx, ex, &paths::BEGIN_PANIC);
101-
if params.len() == 2;
101+
if params.len() == 1;
102102
then {
103103
if is_expn_of(expr.span, "unimplemented").is_some() {
104104
let span = get_outer_span(expr);

0 commit comments

Comments
 (0)