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

@@ -4,7 +4,7 @@ use rustc_data_structures::intern::Interned;
use crate::ty::{
ir::{self, TypeFoldable, TypeVisitable},
FallibleTypeFolder, Ty, TypeFolder, TypeVisitor,
FallibleTypeFolder, Ty, TyCtxt, TypeFolder, TypeVisitor,
};
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)]
@@ -48,7 +48,7 @@ impl<'tcx> TypeFoldable<'tcx> for ExternalConstraints<'tcx> {
}
}
impl<'tcx> TypeVisitable<'tcx> for ExternalConstraints<'tcx> {
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for ExternalConstraints<'tcx> {
fn visit_with<V: TypeVisitor<'tcx>>(
&self,
visitor: &mut V,