From 7e514cb55fa2cd8178a35b5948c605b90d2634ff Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Wed, 3 May 2017 22:58:23 +0900 Subject: [PATCH] Fix for rustc-1.19.0-nightly (2017-04-04) --- clippy_lints/src/needless_pass_by_value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/needless_pass_by_value.rs b/clippy_lints/src/needless_pass_by_value.rs index f443ea1f9..6cc53c52f 100644 --- a/clippy_lints/src/needless_pass_by_value.rs +++ b/clippy_lints/src/needless_pass_by_value.rs @@ -81,7 +81,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue { let preds: Vec = { let parameter_env = ty::ParameterEnvironment::for_item(cx.tcx, node_id); - traits::elaborate_predicates(cx.tcx, parameter_env.caller_bounds.clone()) + traits::elaborate_predicates(cx.tcx, parameter_env.caller_bounds.to_vec()) .filter(|p| !p.is_global()) .collect() };