Fix for rustc 1.26.0-nightly (322d7f7b9 2018-02-25)

This commit is contained in:
Hidehito Yabuuchi 2018-02-26 18:01:10 +09:00
parent 6097b8240b
commit 0411843170

View File

@ -149,7 +149,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, item: &Item, trait_ref
}
}
for subst in substs {
if let Some(subst) = subst.as_type() {
if let ty::subst::UnpackedKind::Type(subst) = subst.unpack() {
if let ty::TyParam(_) = subst.sty {
return;
}