File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ fn ty_search_pat(ty: &Ty<'_>) -> (Pat, Pat) {
403
403
TyKind :: OpaqueDef ( ..) => ( Pat :: Str ( "impl" ) , Pat :: Str ( "" ) ) ,
404
404
TyKind :: Path ( qpath) => qpath_search_pat ( & qpath) ,
405
405
TyKind :: Infer ( ( ) ) => ( Pat :: Str ( "_" ) , Pat :: Str ( "_" ) ) ,
406
+ TyKind :: UnsafeBinder ( binder_ty) => ( Pat :: Str ( "unsafe" ) , ty_search_pat ( binder_ty. inner_ty ) . 1 ) ,
406
407
TyKind :: TraitObject ( _, tagged_ptr) if let TraitObjectSyntax :: Dyn = tagged_ptr. tag ( ) => {
407
408
( Pat :: Str ( "dyn" ) , Pat :: Str ( "" ) )
408
409
} ,
@@ -489,6 +490,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
489
490
} ,
490
491
TyKind :: Infer => ( Pat :: Str ( "_" ) , Pat :: Str ( "_" ) ) ,
491
492
TyKind :: Paren ( ty) => ast_ty_search_pat ( ty) ,
493
+ TyKind :: UnsafeBinder ( binder_ty) => ( Pat :: Str ( "unsafe" ) , ast_ty_search_pat ( & binder_ty. inner_ty ) . 1 ) ,
492
494
TyKind :: TraitObject ( _, trait_obj_syntax) => {
493
495
if let TraitObjectSyntax :: Dyn = trait_obj_syntax {
494
496
( Pat :: Str ( "dyn" ) , Pat :: Str ( "" ) )
You can’t perform that action at this time.
0 commit comments