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 @@ -406,6 +406,7 @@ fn ty_search_pat(ty: &Ty<'_>) -> (Pat, Pat) {
406
406
TyKind :: OpaqueDef ( ..) => ( Pat :: Str ( "impl" ) , Pat :: Str ( "" ) ) ,
407
407
TyKind :: Path ( qpath) => qpath_search_pat ( & qpath) ,
408
408
TyKind :: Infer ( ( ) ) => ( Pat :: Str ( "_" ) , Pat :: Str ( "_" ) ) ,
409
+ TyKind :: UnsafeBinder ( binder_ty) => ( Pat :: Str ( "unsafe" ) , ty_search_pat ( binder_ty. inner_ty ) . 1 ) ,
409
410
TyKind :: TraitObject ( _, tagged_ptr) if let TraitObjectSyntax :: Dyn = tagged_ptr. tag ( ) => {
410
411
( Pat :: Str ( "dyn" ) , Pat :: Str ( "" ) )
411
412
} ,
@@ -499,6 +500,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
499
500
} ,
500
501
TyKind :: Infer => ( Pat :: Str ( "_" ) , Pat :: Str ( "_" ) ) ,
501
502
TyKind :: Paren ( ty) => ast_ty_search_pat ( ty) ,
503
+ TyKind :: UnsafeBinder ( binder_ty) => ( Pat :: Str ( "unsafe" ) , ast_ty_search_pat ( & binder_ty. inner_ty ) . 1 ) ,
502
504
TyKind :: TraitObject ( _, trait_obj_syntax) => {
503
505
if let TraitObjectSyntax :: Dyn = trait_obj_syntax {
504
506
( Pat :: Str ( "dyn" ) , Pat :: Str ( "" ) )
You can’t perform that action at this time.
0 commit comments