1
Fork 0

Remove param env from relation altogether

This commit is contained in:
Michael Goulet 2023-12-19 17:13:10 +00:00
parent 009cd9c815
commit a75d0021ed
11 changed files with 22 additions and 38 deletions

View file

@ -37,10 +37,6 @@ impl<'tcx> TypeRelation<'tcx> for MatchAgainstFreshVars<'tcx> {
self.tcx
}
fn param_env(&self) -> ty::ParamEnv<'tcx> {
panic!("relation should not need a param-env")
}
fn a_is_expected(&self) -> bool {
true
} // irrelevant

View file

@ -23,8 +23,6 @@ pub enum Cause {
pub trait TypeRelation<'tcx>: Sized {
fn tcx(&self) -> TyCtxt<'tcx>;
fn param_env(&self) -> ty::ParamEnv<'tcx>;
/// Returns a static string we can use for printouts.
fn tag(&self) -> &'static str;