Skip to content

Commit 68ff8b1

Browse files
committed
Auto merge of rust-lang#4582 - matthiaskrgr:rustup_17, r=Manishearth
rustup rust-lang#64515 changelog: none
2 parents b5600c9 + e59d619 commit 68ff8b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, item: &Item, trait_ref
146146
}
147147
}
148148
for subst in substs {
149-
if let ty::subst::UnpackedKind::Type(subst) = subst.unpack() {
149+
if let ty::subst::GenericArgKind::Type(subst) = subst.unpack() {
150150
if let ty::Param(_) = subst.kind {
151151
return;
152152
}

clippy_lints/src/utils/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use rustc::traits;
3636
use rustc::ty::{
3737
self,
3838
layout::{self, IntegerExt},
39-
subst::Kind,
39+
subst::GenericArg,
4040
Binder, Ty, TyCtxt,
4141
};
4242
use rustc_errors::Applicability;
@@ -307,7 +307,7 @@ pub fn implements_trait<'a, 'tcx>(
307307
cx: &LateContext<'a, 'tcx>,
308308
ty: Ty<'tcx>,
309309
trait_id: DefId,
310-
ty_params: &[Kind<'tcx>],
310+
ty_params: &[GenericArg<'tcx>],
311311
) -> bool {
312312
let ty = cx.tcx.erase_regions(&ty);
313313
let obligation = cx.tcx.predicate_for_trait_def(

0 commit comments

Comments
 (0)