From 04118431702ec57575bc9948361f4b50a315c162 Mon Sep 17 00:00:00 2001 From: Hidehito Yabuuchi Date: Mon, 26 Feb 2018 18:01:10 +0900 Subject: [PATCH] Fix for rustc 1.26.0-nightly (322d7f7b9 2018-02-25) --- clippy_lints/src/derive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/derive.rs b/clippy_lints/src/derive.rs index d327d0570f1ae..8702ec1e716a8 100644 --- a/clippy_lints/src/derive.rs +++ b/clippy_lints/src/derive.rs @@ -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; }