Remove SelectionContext::allow_negative_impls field
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user