@@ -3,7 +3,7 @@ use std::cmp::min;
33
44use itertools:: Itertools ;
55use rustc_ast:: token:: { Delimiter , Lit , LitKind } ;
6- use rustc_ast:: { ForLoopKind , MatchKind , ast, ptr , token} ;
6+ use rustc_ast:: { ForLoopKind , MatchKind , ast, token} ;
77use rustc_span:: { BytePos , Span } ;
88use tracing:: debug;
99
@@ -1464,7 +1464,7 @@ fn choose_separator_tactic(context: &RewriteContext<'_>, span: Span) -> Option<S
14641464pub ( crate ) fn rewrite_call (
14651465 context : & RewriteContext < ' _ > ,
14661466 callee : & str ,
1467- args : & [ ptr :: P < ast:: Expr > ] ,
1467+ args : & [ Box < ast:: Expr > ] ,
14681468 span : Span ,
14691469 shape : Shape ,
14701470) -> RewriteResult {
@@ -1727,7 +1727,7 @@ fn struct_lit_can_be_aligned(fields: &[ast::ExprField], has_base: bool) -> bool
17271727fn rewrite_struct_lit < ' a > (
17281728 context : & RewriteContext < ' _ > ,
17291729 path : & ast:: Path ,
1730- qself : & Option < ptr :: P < ast:: QSelf > > ,
1730+ qself : & Option < Box < ast:: QSelf > > ,
17311731 fields : & ' a [ ast:: ExprField ] ,
17321732 struct_rest : & ast:: StructRest ,
17331733 attrs : & [ ast:: Attribute ] ,
@@ -2126,7 +2126,7 @@ fn rewrite_assignment(
21262126 context : & RewriteContext < ' _ > ,
21272127 lhs : & ast:: Expr ,
21282128 rhs : & ast:: Expr ,
2129- op : Option < & ast:: BinOp > ,
2129+ op : Option < & ast:: AssignOp > ,
21302130 shape : Shape ,
21312131) -> RewriteResult {
21322132 let operator_str = match op {
@@ -2356,8 +2356,10 @@ fn rewrite_expr_addrof(
23562356) -> RewriteResult {
23572357 let operator_str = match ( mutability, borrow_kind) {
23582358 ( ast:: Mutability :: Not , ast:: BorrowKind :: Ref ) => "&" ,
2359+ ( ast:: Mutability :: Not , ast:: BorrowKind :: Pin ) => "&pin const " ,
23592360 ( ast:: Mutability :: Not , ast:: BorrowKind :: Raw ) => "&raw const " ,
23602361 ( ast:: Mutability :: Mut , ast:: BorrowKind :: Ref ) => "&mut " ,
2362+ ( ast:: Mutability :: Mut , ast:: BorrowKind :: Pin ) => "&pin mut " ,
23612363 ( ast:: Mutability :: Mut , ast:: BorrowKind :: Raw ) => "&raw mut " ,
23622364 } ;
23632365 rewrite_unary_prefix ( context, operator_str, expr, shape)
0 commit comments