Fix for rustc 1.26.0-nightly (322d7f7b9 2018-02-25)
This commit is contained in:
parent
6097b8240b
commit
0411843170
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user