File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ pub trait AstBuilder {
96
96
ident : ast:: Ident ,
97
97
typ : P < ast:: Ty > ,
98
98
ex : P < ast:: Expr > )
99
- -> P < ast:: Stmt > ;
99
+ -> ast:: Stmt ;
100
100
fn stmt_let_type_only ( & self , span : Span , ty : P < ast:: Ty > ) -> ast:: Stmt ;
101
101
fn stmt_item ( & self , sp : Span , item : P < ast:: Item > ) -> ast:: Stmt ;
102
102
@@ -556,7 +556,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
556
556
ident : ast:: Ident ,
557
557
typ : P < ast:: Ty > ,
558
558
ex : P < ast:: Expr > )
559
- -> P < ast:: Stmt > {
559
+ -> ast:: Stmt {
560
560
let pat = if mutbl {
561
561
let binding_mode = ast:: BindingMode :: ByValue ( ast:: Mutability :: Mutable ) ;
562
562
self . pat_ident_binding_mode ( sp, ident, binding_mode)
@@ -571,11 +571,11 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
571
571
span : sp,
572
572
attrs : ast:: ThinVec :: new ( ) ,
573
573
} ) ;
574
- P ( ast:: Stmt {
574
+ ast:: Stmt {
575
575
id : ast:: DUMMY_NODE_ID ,
576
576
node : ast:: StmtKind :: Local ( local) ,
577
577
span : sp,
578
- } )
578
+ }
579
579
}
580
580
581
581
// Generate `let _: Type;`, usually used for type assertions.
You can’t perform that action at this time.
0 commit comments