Filter predicates first for fast-path type flags
This commit is contained in:
parent
4c83bd03a9
commit
096f454774
1 changed files with 2 additions and 2 deletions
|
@ -174,8 +174,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
.param_env
|
||||
.caller_bounds()
|
||||
.iter()
|
||||
.filter_map(|p| p.to_opt_poly_trait_pred())
|
||||
.filter(|p| !p.references_error());
|
||||
.filter(|p| !p.references_error())
|
||||
.filter_map(|p| p.to_opt_poly_trait_pred());
|
||||
|
||||
// Micro-optimization: filter out predicates relating to different traits.
|
||||
let matching_bounds =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue