@@ -3406,14 +3406,14 @@ enum OutType {
34063406}
34073407
34083408impl OutType {
3409- fn matches ( self , cx : & LateContext < ' _ , ' _ > , ty : & hir:: FunctionRetTy < ' _ > ) -> bool {
3409+ fn matches ( self , cx : & LateContext < ' _ , ' _ > , ty : & hir:: FnRetTy < ' _ > ) -> bool {
34103410 let is_unit = |ty : & hir:: Ty < ' _ > | SpanlessEq :: new ( cx) . eq_ty_kind ( & ty. kind , & hir:: TyKind :: Tup ( & [ ] ) ) ;
34113411 match ( self , ty) {
3412- ( Self :: Unit , & hir:: FunctionRetTy :: DefaultReturn ( _) ) => true ,
3413- ( Self :: Unit , & hir:: FunctionRetTy :: Return ( ref ty) ) if is_unit ( ty) => true ,
3414- ( Self :: Bool , & hir:: FunctionRetTy :: Return ( ref ty) ) if is_bool ( ty) => true ,
3415- ( Self :: Any , & hir:: FunctionRetTy :: Return ( ref ty) ) if !is_unit ( ty) => true ,
3416- ( Self :: Ref , & hir:: FunctionRetTy :: Return ( ref ty) ) => matches ! ( ty. kind, hir:: TyKind :: Rptr ( _, _) ) ,
3412+ ( Self :: Unit , & hir:: FnRetTy :: DefaultReturn ( _) ) => true ,
3413+ ( Self :: Unit , & hir:: FnRetTy :: Return ( ref ty) ) if is_unit ( ty) => true ,
3414+ ( Self :: Bool , & hir:: FnRetTy :: Return ( ref ty) ) if is_bool ( ty) => true ,
3415+ ( Self :: Any , & hir:: FnRetTy :: Return ( ref ty) ) if !is_unit ( ty) => true ,
3416+ ( Self :: Ref , & hir:: FnRetTy :: Return ( ref ty) ) => matches ! ( ty. kind, hir:: TyKind :: Rptr ( _, _) ) ,
34173417 _ => false ,
34183418 }
34193419 }
0 commit comments