Skip to content

Commit 5744209

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 78c18c8 commit 5744209

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compiler/rustc_middle/src/ty/structural_impls.rs

-9
Original file line numberDiff line numberDiff line change
@@ -730,12 +730,3 @@ impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::Const<'tcx> {
730730
self.kind().visit_with(visitor)
731731
}
732732
}
733-
734-
impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for ty::UnevaluatedConst<'tcx> {
735-
fn super_visit_with<V: TypeVisitor<TyCtxt<'tcx>>>(
736-
&self,
737-
visitor: &mut V,
738-
) -> ControlFlow<V::BreakTy> {
739-
self.args.visit_with(visitor)
740-
}
741-
}

0 commit comments

Comments
 (0)