Remove SelectionContext::allow_negative_impls field

This commit is contained in:
Guillaume Gomez 2022-03-27 03:01:34 +02:00
parent ad88732254
commit bd51f174ed
2 changed files with 2 additions and 26 deletions

View file

@ -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();