@@ -139,7 +139,7 @@ macro_rules! maybe_whole_expr (
139
139
INTERPOLATED ( token:: NtPath ( ref pt) ) => Some ( ( * * pt) . clone( ) ) ,
140
140
_ => None ,
141
141
} ;
142
- let ret = match ( $p) . token {
142
+ let found = match ( $p) . token {
143
143
INTERPOLATED ( token:: NtExpr ( e) ) => {
144
144
Some ( e)
145
145
}
@@ -149,7 +149,7 @@ macro_rules! maybe_whole_expr (
149
149
}
150
150
_ => None
151
151
} ;
152
- match ret {
152
+ match found {
153
153
Some ( e) => {
154
154
$p. bump( ) ;
155
155
return e;
@@ -164,13 +164,13 @@ macro_rules! maybe_whole_expr (
164
164
macro_rules! maybe_whole (
165
165
( $p: expr, $constructor: ident) => (
166
166
{
167
- let __found__ = match ( $p) . token {
167
+ let found = match ( $p) . token {
168
168
INTERPOLATED ( token:: $constructor( _) ) => {
169
169
Some ( ( $p) . bump_and_get( ) )
170
170
}
171
171
_ => None
172
172
} ;
173
- match __found__ {
173
+ match found {
174
174
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
175
175
return x. clone( )
176
176
}
@@ -180,13 +180,13 @@ macro_rules! maybe_whole (
180
180
) ;
181
181
( no_clone $p: expr, $constructor: ident) => (
182
182
{
183
- let __found__ = match ( $p) . token {
183
+ let found = match ( $p) . token {
184
184
INTERPOLATED ( token:: $constructor( _) ) => {
185
185
Some ( ( $p) . bump_and_get( ) )
186
186
}
187
187
_ => None
188
188
} ;
189
- match __found__ {
189
+ match found {
190
190
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
191
191
return x
192
192
}
@@ -196,13 +196,13 @@ macro_rules! maybe_whole (
196
196
) ;
197
197
( deref $p: expr, $constructor: ident) => (
198
198
{
199
- let __found__ = match ( $p) . token {
199
+ let found = match ( $p) . token {
200
200
INTERPOLATED ( token:: $constructor( _) ) => {
201
201
Some ( ( $p) . bump_and_get( ) )
202
202
}
203
203
_ => None
204
204
} ;
205
- match __found__ {
205
+ match found {
206
206
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
207
207
return ( * x) . clone( )
208
208
}
@@ -212,13 +212,13 @@ macro_rules! maybe_whole (
212
212
) ;
213
213
( Some $p: expr, $constructor: ident) => (
214
214
{
215
- let __found__ = match ( $p) . token {
215
+ let found = match ( $p) . token {
216
216
INTERPOLATED ( token:: $constructor( _) ) => {
217
217
Some ( ( $p) . bump_and_get( ) )
218
218
}
219
219
_ => None
220
220
} ;
221
- match __found__ {
221
+ match found {
222
222
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
223
223
return Some ( x. clone( ) ) ,
224
224
}
@@ -228,13 +228,13 @@ macro_rules! maybe_whole (
228
228
) ;
229
229
( iovi $p: expr, $constructor: ident) => (
230
230
{
231
- let __found__ = match ( $p) . token {
231
+ let found = match ( $p) . token {
232
232
INTERPOLATED ( token:: $constructor( _) ) => {
233
233
Some ( ( $p) . bump_and_get( ) )
234
234
}
235
235
_ => None
236
236
} ;
237
- match __found__ {
237
+ match found {
238
238
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
239
239
return IoviItem ( x. clone( ) )
240
240
}
@@ -244,13 +244,13 @@ macro_rules! maybe_whole (
244
244
) ;
245
245
( pair_empty $p: expr, $constructor: ident) => (
246
246
{
247
- let __found__ = match ( $p) . token {
247
+ let found = match ( $p) . token {
248
248
INTERPOLATED ( token:: $constructor( _) ) => {
249
249
Some ( ( $p) . bump_and_get( ) )
250
250
}
251
251
_ => None
252
252
} ;
253
- match __found__ {
253
+ match found {
254
254
Some ( INTERPOLATED ( token:: $constructor( x) ) ) => {
255
255
return ( Vec :: new( ) , x)
256
256
}
0 commit comments