mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Fix for rustc-1.19.0-nightly (2017-04-04)
This commit is contained in:
parent
ef7ff03dae
commit
7e514cb55f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue