@@ -118,7 +118,7 @@ impl<'a> Parser<'a> {
118
118
token:: NtBlock ( self . collect_tokens_no_attrs ( |this| this. parse_block ( ) ) ?)
119
119
}
120
120
NonterminalKind :: Stmt => match self . parse_stmt ( ForceCollect :: Yes ) ? {
121
- Some ( s) => token:: NtStmt ( s ) ,
121
+ Some ( s) => token:: NtStmt ( P ( s ) ) ,
122
122
None => {
123
123
return Err ( self . struct_span_err ( self . token . span , "expected a statement" ) ) ;
124
124
}
@@ -161,11 +161,11 @@ impl<'a> Parser<'a> {
161
161
return Err ( self . struct_span_err ( self . token . span , msg) ) ;
162
162
}
163
163
NonterminalKind :: Path => token:: NtPath (
164
- self . collect_tokens_no_attrs ( |this| this. parse_path ( PathStyle :: Type ) ) ?,
164
+ P ( self . collect_tokens_no_attrs ( |this| this. parse_path ( PathStyle :: Type ) ) ?) ,
165
165
) ,
166
166
NonterminalKind :: Meta => token:: NtMeta ( P ( self . parse_attr_item ( true ) ?) ) ,
167
167
NonterminalKind :: Vis => token:: NtVis (
168
- self . collect_tokens_no_attrs ( |this| this. parse_visibility ( FollowedByType :: Yes ) ) ?,
168
+ P ( self . collect_tokens_no_attrs ( |this| this. parse_visibility ( FollowedByType :: Yes ) ) ?) ,
169
169
) ,
170
170
NonterminalKind :: Lifetime => {
171
171
if self . check_lifetime ( ) {
0 commit comments