Fix for rustc-1.19.0-nightly (2017-04-04)

This commit is contained in:
Tatsuyuki Ishi 2017-05-03 22:58:23 +09:00 committed by GitHub
parent ef7ff03dae
commit 7e514cb55f

View file

@ -81,7 +81,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue {
let preds: Vec<ty::Predicate> = { let preds: Vec<ty::Predicate> = {
let parameter_env = ty::ParameterEnvironment::for_item(cx.tcx, node_id); 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()) .filter(|p| !p.is_global())
.collect() .collect()
}; };