Skip to content

Commit b0ccdac

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 85f0500 commit b0ccdac

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
@@ -658,12 +658,3 @@ impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::Const<'tcx> {
658658
self.kind().visit_with(visitor)
659659
}
660660
}
661-
662-
impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::UnevaluatedConst<'tcx> {
663-
fn super_visit_with<V: TypeVisitor<TyCtxt<'tcx>>>(
664-
&self,
665-
visitor: &mut V,
666-
) -> ControlFlow<V::BreakTy> {
667-
self.substs.visit_with(visitor)
668-
}
669-
}

0 commit comments

Comments
 (0)