@@ -5,7 +5,7 @@ use proc_macro::bridge::{server, TokenTree};
5
5
use std:: collections:: Bound ;
6
6
use std:: collections:: HashMap ;
7
7
use std:: hash:: { Hash , Hasher } ;
8
- use std :: iter :: FromIterator ;
8
+
9
9
use std:: vec:: IntoIter ;
10
10
11
11
use proc_macro:: { Delimiter , Level , LineColumn , Spacing } ;
@@ -50,15 +50,15 @@ pub struct MyPunct(u32);
50
50
struct MyPunctData ( proc_macro2:: Punct ) ;
51
51
52
52
impl Hash for MyPunctData {
53
- fn hash < H : Hasher > ( & self , hasher : & mut H ) {
53
+ fn hash < H : Hasher > ( & self , _hasher : & mut H ) {
54
54
unimplemented ! ( )
55
55
}
56
56
}
57
57
58
58
impl Eq for MyPunctData { }
59
59
60
60
impl PartialEq for MyPunctData {
61
- fn eq ( & self , other : & Self ) -> bool {
61
+ fn eq ( & self , _other : & Self ) -> bool {
62
62
unimplemented ! ( )
63
63
}
64
64
}
@@ -70,7 +70,7 @@ pub struct MyIdent(u32);
70
70
struct MyIdentData ( proc_macro2:: Ident ) ;
71
71
72
72
impl Hash for MyIdentData {
73
- fn hash < H : Hasher > ( & self , hasher : & mut H ) {
73
+ fn hash < H : Hasher > ( & self , _hasher : & mut H ) {
74
74
unimplemented ! ( )
75
75
}
76
76
}
@@ -97,15 +97,15 @@ pub struct MySpan(u32);
97
97
struct MySpanData ( proc_macro2:: Span ) ;
98
98
99
99
impl Hash for MySpanData {
100
- fn hash < H : Hasher > ( & self , hasher : & mut H ) {
100
+ fn hash < H : Hasher > ( & self , _hasher : & mut H ) {
101
101
unimplemented ! ( )
102
102
}
103
103
}
104
104
105
105
impl Eq for MySpanData { }
106
106
107
107
impl PartialEq for MySpanData {
108
- fn eq ( & self , other : & Self ) -> bool {
108
+ fn eq ( & self , _other : & Self ) -> bool {
109
109
unimplemented ! ( )
110
110
}
111
111
}
@@ -222,23 +222,23 @@ impl server::TokenStream for Rustc {
222
222
unimplemented ! ( )
223
223
}
224
224
225
- fn is_empty ( & mut self , stream : & Self :: TokenStream ) -> bool {
225
+ fn is_empty ( & mut self , _stream : & Self :: TokenStream ) -> bool {
226
226
unimplemented ! ( )
227
227
}
228
- fn from_str ( & mut self , src : & str ) -> Self :: TokenStream {
228
+ fn from_str ( & mut self , _src : & str ) -> Self :: TokenStream {
229
229
unimplemented ! ( )
230
230
}
231
- fn to_string ( & mut self , stream : & Self :: TokenStream ) -> String {
231
+ fn to_string ( & mut self , _stream : & Self :: TokenStream ) -> String {
232
232
unimplemented ! ( )
233
233
}
234
234
fn from_token_tree (
235
235
& mut self ,
236
- tree : TokenTree < Self :: Group , Self :: Punct , Self :: Ident , Self :: Literal > ,
236
+ _tree : TokenTree < Self :: Group , Self :: Punct , Self :: Ident , Self :: Literal > ,
237
237
) -> Self :: TokenStream {
238
238
unimplemented ! ( )
239
239
}
240
240
241
- fn into_iter ( & mut self , stream : Self :: TokenStream ) -> Self :: TokenStreamIter {
241
+ fn into_iter ( & mut self , _stream : Self :: TokenStream ) -> Self :: TokenStreamIter {
242
242
unimplemented ! ( )
243
243
}
244
244
}
@@ -247,124 +247,124 @@ impl server::TokenStreamBuilder for Rustc {
247
247
fn new ( & mut self ) -> Self :: TokenStreamBuilder {
248
248
unimplemented ! ( )
249
249
}
250
- fn push ( & mut self , builder : & mut Self :: TokenStreamBuilder , stream : Self :: TokenStream ) {
250
+ fn push ( & mut self , _builder : & mut Self :: TokenStreamBuilder , _stream : Self :: TokenStream ) {
251
251
unimplemented ! ( )
252
252
}
253
- fn build ( & mut self , builder : Self :: TokenStreamBuilder ) -> Self :: TokenStream {
253
+ fn build ( & mut self , _builder : Self :: TokenStreamBuilder ) -> Self :: TokenStream {
254
254
unimplemented ! ( )
255
255
}
256
256
}
257
257
258
258
impl server:: TokenStreamIter for Rustc {
259
259
fn next (
260
260
& mut self ,
261
- iter : & mut Self :: TokenStreamIter ,
261
+ _iter : & mut Self :: TokenStreamIter ,
262
262
) -> Option < TokenTree < Self :: Group , Self :: Punct , Self :: Ident , Self :: Literal > > {
263
263
unimplemented ! ( )
264
264
}
265
265
}
266
266
267
267
impl server:: Group for Rustc {
268
- fn new ( & mut self , delimiter : Delimiter , stream : Self :: TokenStream ) -> Self :: Group {
268
+ fn new ( & mut self , _delimiter : Delimiter , _stream : Self :: TokenStream ) -> Self :: Group {
269
269
unimplemented ! ( )
270
270
}
271
- fn delimiter ( & mut self , group : & Self :: Group ) -> Delimiter {
271
+ fn delimiter ( & mut self , _group : & Self :: Group ) -> Delimiter {
272
272
unimplemented ! ( )
273
273
}
274
- fn stream ( & mut self , group : & Self :: Group ) -> Self :: TokenStream {
274
+ fn stream ( & mut self , _group : & Self :: Group ) -> Self :: TokenStream {
275
275
unimplemented ! ( )
276
276
}
277
- fn span ( & mut self , group : & Self :: Group ) -> Self :: Span {
277
+ fn span ( & mut self , _group : & Self :: Group ) -> Self :: Span {
278
278
unimplemented ! ( )
279
279
}
280
280
281
- fn set_span ( & mut self , group : & mut Self :: Group , span : Self :: Span ) {
281
+ fn set_span ( & mut self , _group : & mut Self :: Group , _span : Self :: Span ) {
282
282
unimplemented ! ( )
283
283
}
284
284
285
- fn span_open ( & mut self , group : & Self :: Group ) -> Self :: Span {
285
+ fn span_open ( & mut self , _group : & Self :: Group ) -> Self :: Span {
286
286
unimplemented ! ( )
287
287
}
288
288
289
- fn span_close ( & mut self , group : & Self :: Group ) -> Self :: Span {
289
+ fn span_close ( & mut self , _group : & Self :: Group ) -> Self :: Span {
290
290
unimplemented ! ( )
291
291
}
292
292
}
293
293
294
294
impl server:: Punct for Rustc {
295
- fn new ( & mut self , ch : char , spacing : Spacing ) -> Self :: Punct {
295
+ fn new ( & mut self , _ch : char , _spacing : Spacing ) -> Self :: Punct {
296
296
unimplemented ! ( )
297
297
}
298
298
299
- fn as_char ( & mut self , punct : Self :: Punct ) -> char {
299
+ fn as_char ( & mut self , _punct : Self :: Punct ) -> char {
300
300
unimplemented ! ( )
301
301
}
302
- fn spacing ( & mut self , punct : Self :: Punct ) -> Spacing {
302
+ fn spacing ( & mut self , _punct : Self :: Punct ) -> Spacing {
303
303
unimplemented ! ( )
304
304
}
305
- fn span ( & mut self , punct : Self :: Punct ) -> Self :: Span {
305
+ fn span ( & mut self , _punct : Self :: Punct ) -> Self :: Span {
306
306
unimplemented ! ( )
307
307
}
308
- fn with_span ( & mut self , punct : Self :: Punct , span : Self :: Span ) -> Self :: Punct {
308
+ fn with_span ( & mut self , _punct : Self :: Punct , _span : Self :: Span ) -> Self :: Punct {
309
309
unimplemented ! ( )
310
310
}
311
311
}
312
312
313
313
impl server:: Ident for Rustc {
314
- fn new ( & mut self , string : & str , span : Self :: Span , _is_raw : bool ) -> Self :: Ident {
314
+ fn new ( & mut self , _string : & str , _span : Self :: Span , _is_raw : bool ) -> Self :: Ident {
315
315
unimplemented ! ( )
316
316
}
317
317
318
- fn span ( & mut self , ident : Self :: Ident ) -> Self :: Span {
318
+ fn span ( & mut self , _ident : Self :: Ident ) -> Self :: Span {
319
319
unimplemented ! ( )
320
320
}
321
- fn with_span ( & mut self , ident : Self :: Ident , span : Self :: Span ) -> Self :: Ident {
321
+ fn with_span ( & mut self , _ident : Self :: Ident , _span : Self :: Span ) -> Self :: Ident {
322
322
unimplemented ! ( )
323
323
}
324
324
}
325
325
326
326
impl server:: Literal for Rustc {
327
- fn debug ( & mut self , literal : & Self :: Literal ) -> String {
327
+ fn debug ( & mut self , _literal : & Self :: Literal ) -> String {
328
328
unimplemented ! ( )
329
329
}
330
330
331
- fn integer ( & mut self , n : & str ) -> Self :: Literal {
331
+ fn integer ( & mut self , _n : & str ) -> Self :: Literal {
332
332
unimplemented ! ( )
333
333
}
334
334
335
- fn typed_integer ( & mut self , n : & str , kind : & str ) -> Self :: Literal {
335
+ fn typed_integer ( & mut self , _n : & str , _kind : & str ) -> Self :: Literal {
336
336
unimplemented ! ( )
337
337
}
338
338
339
- fn float ( & mut self , n : & str ) -> Self :: Literal {
339
+ fn float ( & mut self , _n : & str ) -> Self :: Literal {
340
340
unimplemented ! ( )
341
341
}
342
342
343
- fn f32 ( & mut self , n : & str ) -> Self :: Literal {
343
+ fn f32 ( & mut self , _n : & str ) -> Self :: Literal {
344
344
unimplemented ! ( )
345
345
}
346
346
347
- fn f64 ( & mut self , n : & str ) -> Self :: Literal {
347
+ fn f64 ( & mut self , _n : & str ) -> Self :: Literal {
348
348
unimplemented ! ( )
349
349
}
350
350
351
- fn string ( & mut self , string : & str ) -> Self :: Literal {
351
+ fn string ( & mut self , _string : & str ) -> Self :: Literal {
352
352
unimplemented ! ( )
353
353
}
354
354
355
- fn character ( & mut self , ch : char ) -> Self :: Literal {
355
+ fn character ( & mut self , _ch : char ) -> Self :: Literal {
356
356
unimplemented ! ( )
357
357
}
358
358
359
- fn byte_string ( & mut self , bytes : & [ u8 ] ) -> Self :: Literal {
359
+ fn byte_string ( & mut self , _bytes : & [ u8 ] ) -> Self :: Literal {
360
360
unimplemented ! ( )
361
361
}
362
362
363
- fn span ( & mut self , literal : & Self :: Literal ) -> Self :: Span {
363
+ fn span ( & mut self , _literal : & Self :: Literal ) -> Self :: Span {
364
364
unimplemented ! ( )
365
365
}
366
366
367
- fn set_span ( & mut self , literal : & mut Self :: Literal , span : Self :: Span ) {
367
+ fn set_span ( & mut self , _literal : & mut Self :: Literal , _span : Self :: Span ) {
368
368
unimplemented ! ( )
369
369
}
370
370
@@ -379,19 +379,19 @@ impl server::Literal for Rustc {
379
379
}
380
380
381
381
impl server:: SourceFile for Rustc {
382
- fn eq ( & mut self , file1 : & Self :: SourceFile , file2 : & Self :: SourceFile ) -> bool {
382
+ fn eq ( & mut self , _file1 : & Self :: SourceFile , _file2 : & Self :: SourceFile ) -> bool {
383
383
unimplemented ! ( )
384
384
}
385
- fn path ( & mut self , file : & Self :: SourceFile ) -> String {
385
+ fn path ( & mut self , _file : & Self :: SourceFile ) -> String {
386
386
unimplemented ! ( )
387
387
}
388
- fn is_real ( & mut self , file : & Self :: SourceFile ) -> bool {
388
+ fn is_real ( & mut self , _file : & Self :: SourceFile ) -> bool {
389
389
unimplemented ! ( )
390
390
}
391
391
}
392
392
393
393
impl server:: Diagnostic for Rustc {
394
- fn new ( & mut self , level : Level , msg : & str , spans : Self :: MultiSpan ) -> Self :: Diagnostic {
394
+ fn new ( & mut self , _level : Level , _msg : & str , _spans : Self :: MultiSpan ) -> Self :: Diagnostic {
395
395
unimplemented ! ( )
396
396
}
397
397
@@ -405,13 +405,13 @@ impl server::Diagnostic for Rustc {
405
405
unimplemented ! ( )
406
406
}
407
407
408
- fn emit ( & mut self , diag : Self :: Diagnostic ) {
408
+ fn emit ( & mut self , _diag : Self :: Diagnostic ) {
409
409
unimplemented ! ( )
410
410
}
411
411
}
412
412
413
413
impl server:: Span for Rustc {
414
- fn debug ( & mut self , span : Self :: Span ) -> String {
414
+ fn debug ( & mut self , _span : Self :: Span ) -> String {
415
415
unimplemented ! ( )
416
416
}
417
417
@@ -423,7 +423,7 @@ impl server::Span for Rustc {
423
423
unimplemented ! ( )
424
424
}
425
425
426
- fn source_file ( & mut self , span : Self :: Span ) -> Self :: SourceFile {
426
+ fn source_file ( & mut self , _span : Self :: Span ) -> Self :: SourceFile {
427
427
unimplemented ! ( )
428
428
}
429
429
@@ -434,19 +434,19 @@ impl server::Span for Rustc {
434
434
fn parent ( & mut self , _span : Self :: Span ) -> Option < Self :: Span > {
435
435
unimplemented ! ( )
436
436
}
437
- fn source ( & mut self , span : Self :: Span ) -> Self :: Span {
437
+ fn source ( & mut self , _span : Self :: Span ) -> Self :: Span {
438
438
unimplemented ! ( )
439
439
}
440
- fn start ( & mut self , span : Self :: Span ) -> LineColumn {
440
+ fn start ( & mut self , _span : Self :: Span ) -> LineColumn {
441
441
unimplemented ! ( )
442
442
}
443
- fn end ( & mut self , span : Self :: Span ) -> LineColumn {
443
+ fn end ( & mut self , _span : Self :: Span ) -> LineColumn {
444
444
unimplemented ! ( )
445
445
}
446
- fn join ( & mut self , first : Self :: Span , second : Self :: Span ) -> Option < Self :: Span > {
446
+ fn join ( & mut self , _first : Self :: Span , _second : Self :: Span ) -> Option < Self :: Span > {
447
447
unimplemented ! ( )
448
448
}
449
- fn resolved_at ( & mut self , span : Self :: Span , at : Self :: Span ) -> Self :: Span {
449
+ fn resolved_at ( & mut self , _span : Self :: Span , _at : Self :: Span ) -> Self :: Span {
450
450
unimplemented ! ( )
451
451
}
452
452
}
0 commit comments