Separate select calls that don't need a binder
This commit is contained in:
parent
36453456cb
commit
52f7384995
15 changed files with 58 additions and 44 deletions
|
@ -91,7 +91,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
let infcx = tcx.infer_ctxt().build();
|
||||
let mut selcx = SelectionContext::new(&infcx);
|
||||
for polarity in [true, false] {
|
||||
let result = selcx.select(&Obligation::new(
|
||||
let result = selcx.poly_select(&Obligation::new(
|
||||
tcx,
|
||||
ObligationCause::dummy(),
|
||||
orig_env,
|
||||
|
@ -292,7 +292,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
new_env,
|
||||
pred,
|
||||
));
|
||||
let result = select.select(&obligation);
|
||||
let result = select.poly_select(&obligation);
|
||||
|
||||
match result {
|
||||
Ok(Some(ref impl_source)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue