Skip to content

Commit 3c332fe

Browse files
committed
Unimpl TypeSuperVisitable for UnevaluatedConst
UnevaluatedConst is not a type of any interest to folders or visitors, and therefore should not be "super visitable" at all.
1 parent 674b677 commit 3c332fe

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler/rustc_middle/src/ty/structural_impls.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -829,15 +829,6 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for InferConst {
829829
}
830830
}
831831

832-
impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::UnevaluatedConst<'tcx> {
833-
fn super_visit_with<V: TypeVisitor<TyCtxt<'tcx>>>(
834-
&self,
835-
visitor: &mut V,
836-
) -> ControlFlow<V::BreakTy> {
837-
self.args.visit_with(visitor)
838-
}
839-
}
840-
841832
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for TyAndLayout<'tcx, Ty<'tcx>> {
842833
fn visit_with<V: TypeVisitor<TyCtxt<'tcx>>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> {
843834
visitor.visit_ty(self.ty)

0 commit comments

Comments
 (0)