1
Fork 0

Store relationships on Inherent

This commit is contained in:
Santiago Pastorino 2022-11-25 18:18:03 -03:00
parent 81ee6aebaa
commit 7fe472223e
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
9 changed files with 28 additions and 61 deletions

View file

@ -1,6 +1,5 @@
use crate::infer::InferCtxt;
use crate::traits::Obligation;
use rustc_data_structures::fx::FxHashMap;
use rustc_hir::def_id::DefId;
use rustc_middle::ty::{self, ToPredicate, Ty};
@ -42,8 +41,6 @@ pub trait TraitEngine<'tcx>: 'tcx {
fn select_where_possible(&mut self, infcx: &InferCtxt<'tcx>) -> Vec<FulfillmentError<'tcx>>;
fn pending_obligations(&self) -> Vec<PredicateObligation<'tcx>>;
fn relationships(&mut self) -> &mut FxHashMap<ty::TyVid, ty::FoundRelationships>;
}
pub trait TraitEngineExt<'tcx> {