Make visiting traits generic over the Interner

This commit is contained in:
Alan Egerton
2023-02-09 19:38:07 +00:00
parent 0b7dda9afd
commit dea342d861
44 changed files with 121 additions and 105 deletions

View File

@@ -98,7 +98,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
struct ContainsTerm<'tcx> {
term: ty::Term<'tcx>,
}
impl<'tcx> TypeVisitor<'tcx> for ContainsTerm<'tcx> {
impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for ContainsTerm<'tcx> {
type BreakTy = ();
fn visit_ty(&mut self, t: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
if t.needs_infer() {