Fix for rustc-1.19.0-nightly (2017-04-04)
This commit is contained in:
parent
ef7ff03dae
commit
7e514cb55f
@ -81,7 +81,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessPassByValue {
|
||||
|
||||
let preds: Vec<ty::Predicate> = {
|
||||
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()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user