Skip to content

Commit f8f05b0

Browse files
committed
remove warnings about unused variables
1 parent afd15b5 commit f8f05b0

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

src/rustc_server.rs

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use proc_macro::bridge::{server, TokenTree};
55
use std::collections::Bound;
66
use std::collections::HashMap;
77
use std::hash::{Hash, Hasher};
8-
use std::iter::FromIterator;
8+
99
use std::vec::IntoIter;
1010

1111
use proc_macro::{Delimiter, Level, LineColumn, Spacing};
@@ -50,15 +50,15 @@ pub struct MyPunct(u32);
5050
struct MyPunctData(proc_macro2::Punct);
5151

5252
impl Hash for MyPunctData {
53-
fn hash<H: Hasher>(&self, hasher: &mut H) {
53+
fn hash<H: Hasher>(&self, _hasher: &mut H) {
5454
unimplemented!()
5555
}
5656
}
5757

5858
impl Eq for MyPunctData {}
5959

6060
impl PartialEq for MyPunctData {
61-
fn eq(&self, other: &Self) -> bool {
61+
fn eq(&self, _other: &Self) -> bool {
6262
unimplemented!()
6363
}
6464
}
@@ -70,7 +70,7 @@ pub struct MyIdent(u32);
7070
struct MyIdentData(proc_macro2::Ident);
7171

7272
impl Hash for MyIdentData {
73-
fn hash<H: Hasher>(&self, hasher: &mut H) {
73+
fn hash<H: Hasher>(&self, _hasher: &mut H) {
7474
unimplemented!()
7575
}
7676
}
@@ -97,15 +97,15 @@ pub struct MySpan(u32);
9797
struct MySpanData(proc_macro2::Span);
9898

9999
impl Hash for MySpanData {
100-
fn hash<H: Hasher>(&self, hasher: &mut H) {
100+
fn hash<H: Hasher>(&self, _hasher: &mut H) {
101101
unimplemented!()
102102
}
103103
}
104104

105105
impl Eq for MySpanData {}
106106

107107
impl PartialEq for MySpanData {
108-
fn eq(&self, other: &Self) -> bool {
108+
fn eq(&self, _other: &Self) -> bool {
109109
unimplemented!()
110110
}
111111
}
@@ -222,23 +222,23 @@ impl server::TokenStream for Rustc {
222222
unimplemented!()
223223
}
224224

225-
fn is_empty(&mut self, stream: &Self::TokenStream) -> bool {
225+
fn is_empty(&mut self, _stream: &Self::TokenStream) -> bool {
226226
unimplemented!()
227227
}
228-
fn from_str(&mut self, src: &str) -> Self::TokenStream {
228+
fn from_str(&mut self, _src: &str) -> Self::TokenStream {
229229
unimplemented!()
230230
}
231-
fn to_string(&mut self, stream: &Self::TokenStream) -> String {
231+
fn to_string(&mut self, _stream: &Self::TokenStream) -> String {
232232
unimplemented!()
233233
}
234234
fn from_token_tree(
235235
&mut self,
236-
tree: TokenTree<Self::Group, Self::Punct, Self::Ident, Self::Literal>,
236+
_tree: TokenTree<Self::Group, Self::Punct, Self::Ident, Self::Literal>,
237237
) -> Self::TokenStream {
238238
unimplemented!()
239239
}
240240

241-
fn into_iter(&mut self, stream: Self::TokenStream) -> Self::TokenStreamIter {
241+
fn into_iter(&mut self, _stream: Self::TokenStream) -> Self::TokenStreamIter {
242242
unimplemented!()
243243
}
244244
}
@@ -247,124 +247,124 @@ impl server::TokenStreamBuilder for Rustc {
247247
fn new(&mut self) -> Self::TokenStreamBuilder {
248248
unimplemented!()
249249
}
250-
fn push(&mut self, builder: &mut Self::TokenStreamBuilder, stream: Self::TokenStream) {
250+
fn push(&mut self, _builder: &mut Self::TokenStreamBuilder, _stream: Self::TokenStream) {
251251
unimplemented!()
252252
}
253-
fn build(&mut self, builder: Self::TokenStreamBuilder) -> Self::TokenStream {
253+
fn build(&mut self, _builder: Self::TokenStreamBuilder) -> Self::TokenStream {
254254
unimplemented!()
255255
}
256256
}
257257

258258
impl server::TokenStreamIter for Rustc {
259259
fn next(
260260
&mut self,
261-
iter: &mut Self::TokenStreamIter,
261+
_iter: &mut Self::TokenStreamIter,
262262
) -> Option<TokenTree<Self::Group, Self::Punct, Self::Ident, Self::Literal>> {
263263
unimplemented!()
264264
}
265265
}
266266

267267
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 {
269269
unimplemented!()
270270
}
271-
fn delimiter(&mut self, group: &Self::Group) -> Delimiter {
271+
fn delimiter(&mut self, _group: &Self::Group) -> Delimiter {
272272
unimplemented!()
273273
}
274-
fn stream(&mut self, group: &Self::Group) -> Self::TokenStream {
274+
fn stream(&mut self, _group: &Self::Group) -> Self::TokenStream {
275275
unimplemented!()
276276
}
277-
fn span(&mut self, group: &Self::Group) -> Self::Span {
277+
fn span(&mut self, _group: &Self::Group) -> Self::Span {
278278
unimplemented!()
279279
}
280280

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) {
282282
unimplemented!()
283283
}
284284

285-
fn span_open(&mut self, group: &Self::Group) -> Self::Span {
285+
fn span_open(&mut self, _group: &Self::Group) -> Self::Span {
286286
unimplemented!()
287287
}
288288

289-
fn span_close(&mut self, group: &Self::Group) -> Self::Span {
289+
fn span_close(&mut self, _group: &Self::Group) -> Self::Span {
290290
unimplemented!()
291291
}
292292
}
293293

294294
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 {
296296
unimplemented!()
297297
}
298298

299-
fn as_char(&mut self, punct: Self::Punct) -> char {
299+
fn as_char(&mut self, _punct: Self::Punct) -> char {
300300
unimplemented!()
301301
}
302-
fn spacing(&mut self, punct: Self::Punct) -> Spacing {
302+
fn spacing(&mut self, _punct: Self::Punct) -> Spacing {
303303
unimplemented!()
304304
}
305-
fn span(&mut self, punct: Self::Punct) -> Self::Span {
305+
fn span(&mut self, _punct: Self::Punct) -> Self::Span {
306306
unimplemented!()
307307
}
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 {
309309
unimplemented!()
310310
}
311311
}
312312

313313
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 {
315315
unimplemented!()
316316
}
317317

318-
fn span(&mut self, ident: Self::Ident) -> Self::Span {
318+
fn span(&mut self, _ident: Self::Ident) -> Self::Span {
319319
unimplemented!()
320320
}
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 {
322322
unimplemented!()
323323
}
324324
}
325325

326326
impl server::Literal for Rustc {
327-
fn debug(&mut self, literal: &Self::Literal) -> String {
327+
fn debug(&mut self, _literal: &Self::Literal) -> String {
328328
unimplemented!()
329329
}
330330

331-
fn integer(&mut self, n: &str) -> Self::Literal {
331+
fn integer(&mut self, _n: &str) -> Self::Literal {
332332
unimplemented!()
333333
}
334334

335-
fn typed_integer(&mut self, n: &str, kind: &str) -> Self::Literal {
335+
fn typed_integer(&mut self, _n: &str, _kind: &str) -> Self::Literal {
336336
unimplemented!()
337337
}
338338

339-
fn float(&mut self, n: &str) -> Self::Literal {
339+
fn float(&mut self, _n: &str) -> Self::Literal {
340340
unimplemented!()
341341
}
342342

343-
fn f32(&mut self, n: &str) -> Self::Literal {
343+
fn f32(&mut self, _n: &str) -> Self::Literal {
344344
unimplemented!()
345345
}
346346

347-
fn f64(&mut self, n: &str) -> Self::Literal {
347+
fn f64(&mut self, _n: &str) -> Self::Literal {
348348
unimplemented!()
349349
}
350350

351-
fn string(&mut self, string: &str) -> Self::Literal {
351+
fn string(&mut self, _string: &str) -> Self::Literal {
352352
unimplemented!()
353353
}
354354

355-
fn character(&mut self, ch: char) -> Self::Literal {
355+
fn character(&mut self, _ch: char) -> Self::Literal {
356356
unimplemented!()
357357
}
358358

359-
fn byte_string(&mut self, bytes: &[u8]) -> Self::Literal {
359+
fn byte_string(&mut self, _bytes: &[u8]) -> Self::Literal {
360360
unimplemented!()
361361
}
362362

363-
fn span(&mut self, literal: &Self::Literal) -> Self::Span {
363+
fn span(&mut self, _literal: &Self::Literal) -> Self::Span {
364364
unimplemented!()
365365
}
366366

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) {
368368
unimplemented!()
369369
}
370370

@@ -379,19 +379,19 @@ impl server::Literal for Rustc {
379379
}
380380

381381
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 {
383383
unimplemented!()
384384
}
385-
fn path(&mut self, file: &Self::SourceFile) -> String {
385+
fn path(&mut self, _file: &Self::SourceFile) -> String {
386386
unimplemented!()
387387
}
388-
fn is_real(&mut self, file: &Self::SourceFile) -> bool {
388+
fn is_real(&mut self, _file: &Self::SourceFile) -> bool {
389389
unimplemented!()
390390
}
391391
}
392392

393393
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 {
395395
unimplemented!()
396396
}
397397

@@ -405,13 +405,13 @@ impl server::Diagnostic for Rustc {
405405
unimplemented!()
406406
}
407407

408-
fn emit(&mut self, diag: Self::Diagnostic) {
408+
fn emit(&mut self, _diag: Self::Diagnostic) {
409409
unimplemented!()
410410
}
411411
}
412412

413413
impl server::Span for Rustc {
414-
fn debug(&mut self, span: Self::Span) -> String {
414+
fn debug(&mut self, _span: Self::Span) -> String {
415415
unimplemented!()
416416
}
417417

@@ -423,7 +423,7 @@ impl server::Span for Rustc {
423423
unimplemented!()
424424
}
425425

426-
fn source_file(&mut self, span: Self::Span) -> Self::SourceFile {
426+
fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile {
427427
unimplemented!()
428428
}
429429

@@ -434,19 +434,19 @@ impl server::Span for Rustc {
434434
fn parent(&mut self, _span: Self::Span) -> Option<Self::Span> {
435435
unimplemented!()
436436
}
437-
fn source(&mut self, span: Self::Span) -> Self::Span {
437+
fn source(&mut self, _span: Self::Span) -> Self::Span {
438438
unimplemented!()
439439
}
440-
fn start(&mut self, span: Self::Span) -> LineColumn {
440+
fn start(&mut self, _span: Self::Span) -> LineColumn {
441441
unimplemented!()
442442
}
443-
fn end(&mut self, span: Self::Span) -> LineColumn {
443+
fn end(&mut self, _span: Self::Span) -> LineColumn {
444444
unimplemented!()
445445
}
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> {
447447
unimplemented!()
448448
}
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 {
450450
unimplemented!()
451451
}
452452
}

0 commit comments

Comments
 (0)