Skip to content

Commit cbd178b

Browse files
committed
Fix some rebase fallout
1 parent 4cb7f13 commit cbd178b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/copy_iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::utils::{is_copy, match_path, paths, span_note_and_lint};
22
use rustc::hir::{Item, ItemKind};
33
use rustc::lint::*;
4-
use rustc::{declare_lint, lint_array};
4+
use rustc::{declare_tool_lint, lint_array};
55

66
/// **What it does:** Checks for types that implement `Copy` as well as
77
/// `Iterator`.

clippy_lints/src/identity_op.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IdentityOp {
6363
fn check(cx: &LateContext<'_, '_>, e: &Expr, m: i8, span: Span, arg: Span) {
6464
if let Some(Constant::Int(v)) = constant_simple(cx, cx.tables, e) {
6565
let check = match cx.tables.expr_ty(e).sty {
66-
ty::TyInt(ity) => unsext(cx.tcx, -1i128, ity),
67-
ty::TyUint(uty) => clip(cx.tcx, !0, uty),
66+
ty::Int(ity) => unsext(cx.tcx, -1i128, ity),
67+
ty::Uint(uty) => clip(cx.tcx, !0, uty),
6868
_ => return,
6969
};
7070
if match m {

0 commit comments

Comments
 (0)