@@ -288,8 +288,6 @@ impl Session {
288
288
}
289
289
290
290
#[ rustc_lint_diagnostics]
291
- #[ allow( rustc:: untranslatable_diagnostic) ]
292
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
293
291
pub fn struct_span_warn < S : Into < MultiSpan > > (
294
292
& self ,
295
293
sp : S ,
@@ -298,8 +296,6 @@ impl Session {
298
296
self . diagnostic ( ) . struct_span_warn ( sp, msg)
299
297
}
300
298
#[ rustc_lint_diagnostics]
301
- #[ allow( rustc:: untranslatable_diagnostic) ]
302
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
303
299
pub fn struct_span_warn_with_expectation < S : Into < MultiSpan > > (
304
300
& self ,
305
301
sp : S ,
@@ -309,8 +305,6 @@ impl Session {
309
305
self . diagnostic ( ) . struct_span_warn_with_expectation ( sp, msg, id)
310
306
}
311
307
#[ rustc_lint_diagnostics]
312
- #[ allow( rustc:: untranslatable_diagnostic) ]
313
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
314
308
pub fn struct_span_warn_with_code < S : Into < MultiSpan > > (
315
309
& self ,
316
310
sp : S ,
@@ -320,14 +314,10 @@ impl Session {
320
314
self . diagnostic ( ) . struct_span_warn_with_code ( sp, msg, code)
321
315
}
322
316
#[ rustc_lint_diagnostics]
323
- #[ allow( rustc:: untranslatable_diagnostic) ]
324
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
325
317
pub fn struct_warn ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
326
318
self . diagnostic ( ) . struct_warn ( msg)
327
319
}
328
320
#[ rustc_lint_diagnostics]
329
- #[ allow( rustc:: untranslatable_diagnostic) ]
330
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
331
321
pub fn struct_warn_with_expectation (
332
322
& self ,
333
323
msg : impl Into < DiagnosticMessage > ,
@@ -336,8 +326,6 @@ impl Session {
336
326
self . diagnostic ( ) . struct_warn_with_expectation ( msg, id)
337
327
}
338
328
#[ rustc_lint_diagnostics]
339
- #[ allow( rustc:: untranslatable_diagnostic) ]
340
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
341
329
pub fn struct_span_allow < S : Into < MultiSpan > > (
342
330
& self ,
343
331
sp : S ,
@@ -346,14 +334,10 @@ impl Session {
346
334
self . diagnostic ( ) . struct_span_allow ( sp, msg)
347
335
}
348
336
#[ rustc_lint_diagnostics]
349
- #[ allow( rustc:: untranslatable_diagnostic) ]
350
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
351
337
pub fn struct_allow ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , ( ) > {
352
338
self . diagnostic ( ) . struct_allow ( msg)
353
339
}
354
340
#[ rustc_lint_diagnostics]
355
- #[ allow( rustc:: untranslatable_diagnostic) ]
356
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
357
341
pub fn struct_expect (
358
342
& self ,
359
343
msg : impl Into < DiagnosticMessage > ,
@@ -362,8 +346,6 @@ impl Session {
362
346
self . diagnostic ( ) . struct_expect ( msg, id)
363
347
}
364
348
#[ rustc_lint_diagnostics]
365
- #[ allow( rustc:: untranslatable_diagnostic) ]
366
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
367
349
pub fn struct_span_err < S : Into < MultiSpan > > (
368
350
& self ,
369
351
sp : S ,
@@ -372,8 +354,6 @@ impl Session {
372
354
self . diagnostic ( ) . struct_span_err ( sp, msg)
373
355
}
374
356
#[ rustc_lint_diagnostics]
375
- #[ allow( rustc:: untranslatable_diagnostic) ]
376
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
377
357
pub fn struct_span_err_with_code < S : Into < MultiSpan > > (
378
358
& self ,
379
359
sp : S ,
@@ -384,17 +364,13 @@ impl Session {
384
364
}
385
365
// FIXME: This method should be removed (every error should have an associated error code).
386
366
#[ rustc_lint_diagnostics]
387
- #[ allow( rustc:: untranslatable_diagnostic) ]
388
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
389
367
pub fn struct_err (
390
368
& self ,
391
369
msg : impl Into < DiagnosticMessage > ,
392
370
) -> DiagnosticBuilder < ' _ , ErrorGuaranteed > {
393
371
self . parse_sess . struct_err ( msg)
394
372
}
395
373
#[ rustc_lint_diagnostics]
396
- #[ allow( rustc:: untranslatable_diagnostic) ]
397
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
398
374
pub fn struct_err_with_code (
399
375
& self ,
400
376
msg : impl Into < DiagnosticMessage > ,
@@ -403,8 +379,6 @@ impl Session {
403
379
self . diagnostic ( ) . struct_err_with_code ( msg, code)
404
380
}
405
381
#[ rustc_lint_diagnostics]
406
- #[ allow( rustc:: untranslatable_diagnostic) ]
407
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
408
382
pub fn struct_warn_with_code (
409
383
& self ,
410
384
msg : impl Into < DiagnosticMessage > ,
@@ -413,8 +387,6 @@ impl Session {
413
387
self . diagnostic ( ) . struct_warn_with_code ( msg, code)
414
388
}
415
389
#[ rustc_lint_diagnostics]
416
- #[ allow( rustc:: untranslatable_diagnostic) ]
417
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
418
390
pub fn struct_span_fatal < S : Into < MultiSpan > > (
419
391
& self ,
420
392
sp : S ,
@@ -423,8 +395,6 @@ impl Session {
423
395
self . diagnostic ( ) . struct_span_fatal ( sp, msg)
424
396
}
425
397
#[ rustc_lint_diagnostics]
426
- #[ allow( rustc:: untranslatable_diagnostic) ]
427
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
428
398
pub fn struct_span_fatal_with_code < S : Into < MultiSpan > > (
429
399
& self ,
430
400
sp : S ,
@@ -434,21 +404,15 @@ impl Session {
434
404
self . diagnostic ( ) . struct_span_fatal_with_code ( sp, msg, code)
435
405
}
436
406
#[ rustc_lint_diagnostics]
437
- #[ allow( rustc:: untranslatable_diagnostic) ]
438
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
439
407
pub fn struct_fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> DiagnosticBuilder < ' _ , !> {
440
408
self . diagnostic ( ) . struct_fatal ( msg)
441
409
}
442
410
443
411
#[ rustc_lint_diagnostics]
444
- #[ allow( rustc:: untranslatable_diagnostic) ]
445
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
446
412
pub fn span_fatal < S : Into < MultiSpan > > ( & self , sp : S , msg : impl Into < DiagnosticMessage > ) -> ! {
447
413
self . diagnostic ( ) . span_fatal ( sp, msg)
448
414
}
449
415
#[ rustc_lint_diagnostics]
450
- #[ allow( rustc:: untranslatable_diagnostic) ]
451
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
452
416
pub fn span_fatal_with_code < S : Into < MultiSpan > > (
453
417
& self ,
454
418
sp : S ,
@@ -458,14 +422,10 @@ impl Session {
458
422
self . diagnostic ( ) . span_fatal_with_code ( sp, msg, code)
459
423
}
460
424
#[ rustc_lint_diagnostics]
461
- #[ allow( rustc:: untranslatable_diagnostic) ]
462
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
463
425
pub fn fatal ( & self , msg : impl Into < DiagnosticMessage > ) -> ! {
464
426
self . diagnostic ( ) . fatal ( msg) . raise ( )
465
427
}
466
428
#[ rustc_lint_diagnostics]
467
- #[ allow( rustc:: untranslatable_diagnostic) ]
468
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
469
429
pub fn span_err_or_warn < S : Into < MultiSpan > > (
470
430
& self ,
471
431
is_warning : bool ,
@@ -479,8 +439,6 @@ impl Session {
479
439
}
480
440
}
481
441
#[ rustc_lint_diagnostics]
482
- #[ allow( rustc:: untranslatable_diagnostic) ]
483
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
484
442
pub fn span_err < S : Into < MultiSpan > > (
485
443
& self ,
486
444
sp : S ,
@@ -489,8 +447,6 @@ impl Session {
489
447
self . diagnostic ( ) . span_err ( sp, msg)
490
448
}
491
449
#[ rustc_lint_diagnostics]
492
- #[ allow( rustc:: untranslatable_diagnostic) ]
493
- #[ allow( rustc:: diagnostic_outside_of_impl) ]
494
450
pub fn span_err_with_code < S : Into < MultiSpan > > (
495
451
& self ,
496
452
sp : S ,
0 commit comments