Skip to content

Commit

Permalink
Auto merge of rust-lang#4582 - matthiaskrgr:rustup_17, r=Manishearth
Browse files Browse the repository at this point in the history
rustup rust-lang/rust#64515

changelog: none
  • Loading branch information
bors committed Sep 26, 2019
2 parents b5600c9 + e59d619 commit 68ff8b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, item: &Item, trait_ref
}
}
for subst in substs {
if let ty::subst::UnpackedKind::Type(subst) = subst.unpack() {
if let ty::subst::GenericArgKind::Type(subst) = subst.unpack() {
if let ty::Param(_) = subst.kind {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions clippy_lints/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use rustc::traits;
use rustc::ty::{
self,
layout::{self, IntegerExt},
subst::Kind,
subst::GenericArg,
Binder, Ty, TyCtxt,
};
use rustc_errors::Applicability;
Expand Down Expand Up @@ -307,7 +307,7 @@ pub fn implements_trait<'a, 'tcx>(
cx: &LateContext<'a, 'tcx>,
ty: Ty<'tcx>,
trait_id: DefId,
ty_params: &[Kind<'tcx>],
ty_params: &[GenericArg<'tcx>],
) -> bool {
let ty = cx.tcx.erase_regions(&ty);
let obligation = cx.tcx.predicate_for_trait_def(
Expand Down

0 comments on commit 68ff8b1

Please sign in to comment.