mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
Fix for rustc-1.19.0-nightly (2017-04-04)
This commit is contained in:
@@ -81,7 +81,7 @@ fn check_fn(
|
||||
|
||||
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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user