Fix bugs due to unhandled ControlFlow
This commit is contained in:
parent
794c12416b
commit
04c453c4bc
2 changed files with 2 additions and 2 deletions
|
@ -1587,7 +1587,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
|
|||
}
|
||||
|
||||
impl<'a, 'b, 'tcx> ty::visit::TypeVisitor<TyCtxt<'tcx>> for FnPtrFinder<'a, 'b, 'tcx> {
|
||||
type Result = ControlFlow<Ty<'tcx>>;
|
||||
type Result = ();
|
||||
|
||||
fn visit_ty(&mut self, ty: Ty<'tcx>) -> Self::Result {
|
||||
if let ty::FnPtr(_, hdr) = ty.kind()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue