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
} ,
@@ -486,6 +487,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
486
487
} ,
487
488
TyKind :: Infer => ( Pat :: Str ( "_" ) , Pat :: Str ( "_" ) ) ,
488
489
TyKind :: Paren ( ty) => ast_ty_search_pat ( ty) ,
490
+ TyKind :: UnsafeBinder ( binder_ty) => ( Pat :: Str ( "unsafe" ) , ast_ty_search_pat ( & binder_ty. inner_ty ) . 1 ) ,
489
491
TyKind :: TraitObject ( _, trait_obj_syntax) => {
490
492
if let TraitObjectSyntax :: Dyn = trait_obj_syntax {
491
493
( Pat :: Str ( "dyn" ) , Pat :: Str ( "" ) )
You can’t perform that action at this time.
0 commit comments