Set the default BreakTy
to !
This commit is contained in:
parent
df6e87cc85
commit
65cdc21f06
7 changed files with 16 additions and 1 deletions
|
@ -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(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue