Effects cleanup
- removed extra bits from predicates queries that are no longer needed in the new system - removed the need for `non_erasable_generics` to take in tcx and DefId, removed unused arguments in callers
This commit is contained in:
parent
c1db4dc242
commit
f6fea83342
23 changed files with 40 additions and 97 deletions
|
@ -161,8 +161,7 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
|
|||
fn predicates_of(&self, def_id: stable_mir::DefId) -> stable_mir::ty::GenericPredicates {
|
||||
let mut tables = self.0.borrow_mut();
|
||||
let def_id = tables[def_id];
|
||||
let GenericPredicates { parent, predicates, effects_min_tys: _ } =
|
||||
tables.tcx.predicates_of(def_id);
|
||||
let GenericPredicates { parent, predicates } = tables.tcx.predicates_of(def_id);
|
||||
stable_mir::ty::GenericPredicates {
|
||||
parent: parent.map(|did| tables.trait_def(did)),
|
||||
predicates: predicates
|
||||
|
@ -183,8 +182,7 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
|
|||
) -> stable_mir::ty::GenericPredicates {
|
||||
let mut tables = self.0.borrow_mut();
|
||||
let def_id = tables[def_id];
|
||||
let GenericPredicates { parent, predicates, effects_min_tys: _ } =
|
||||
tables.tcx.explicit_predicates_of(def_id);
|
||||
let GenericPredicates { parent, predicates } = tables.tcx.explicit_predicates_of(def_id);
|
||||
stable_mir::ty::GenericPredicates {
|
||||
parent: parent.map(|did| tables.trait_def(did)),
|
||||
predicates: predicates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue