Remove SelectionContext::allow_negative_impls field
This commit is contained in:
parent
ad88732254
commit
bd51f174ed
2 changed files with 2 additions and 26 deletions
|
@ -87,7 +87,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
let trait_pred = ty::Binder::dummy(trait_ref);
|
||||
|
||||
let bail_out = tcx.infer_ctxt().enter(|infcx| {
|
||||
let mut selcx = SelectionContext::with_negative(&infcx, true);
|
||||
let mut selcx = SelectionContext::new(&infcx);
|
||||
let result = selcx.select(&Obligation::new(
|
||||
ObligationCause::dummy(),
|
||||
orig_env,
|
||||
|
@ -295,7 +295,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
fresh_preds.insert(self.clean_pred(infcx, predicate));
|
||||
}
|
||||
|
||||
let mut select = SelectionContext::with_negative(&infcx, true);
|
||||
let mut select = SelectionContext::new(&infcx);
|
||||
|
||||
let mut already_visited = FxHashSet::default();
|
||||
let mut predicates = VecDeque::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue