@@ -3406,14 +3406,14 @@ enum OutType {
3406
3406
}
3407
3407
3408
3408
impl OutType {
3409
- fn matches ( self , cx : & LateContext < ' _ , ' _ > , ty : & hir:: FunctionRetTy < ' _ > ) -> bool {
3409
+ fn matches ( self , cx : & LateContext < ' _ , ' _ > , ty : & hir:: FnRetTy < ' _ > ) -> bool {
3410
3410
let is_unit = |ty : & hir:: Ty < ' _ > | SpanlessEq :: new ( cx) . eq_ty_kind ( & ty. kind , & hir:: TyKind :: Tup ( & [ ] ) ) ;
3411
3411
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 ( _, _) ) ,
3417
3417
_ => false ,
3418
3418
}
3419
3419
}
0 commit comments