1
Fork 0

Set the default BreakTy to !

This commit is contained in:
LeSeulArtichaut 2020-11-14 21:46:39 +01:00
parent df6e87cc85
commit 65cdc21f06
7 changed files with 16 additions and 1 deletions

View file

@ -1135,6 +1135,8 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
};
impl<'a, 'tcx> ty::fold::TypeVisitor<'tcx> for ProhibitOpaqueTypes<'a, 'tcx> {
type BreakTy = ();
fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
match ty.kind() {
ty::Opaque(..) => {