@@ -247,10 +247,10 @@ LL | const BIG_NUMBER: i32 = 1000000;
247
247
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248
248
|
249
249
help: consider removing the safety comment
250
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:507:5
250
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:507:8
251
251
|
252
252
LL | // SAFETY:
253
- | ^^^ ^^^^^^^
253
+ | ^^^^^^^
254
254
= note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
255
255
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
256
256
@@ -289,10 +289,10 @@ LL | | };
289
289
| |______^
290
290
|
291
291
help: consider removing the safety comment
292
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:542:5
292
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:542:8
293
293
|
294
294
LL | // SAFETY: this is more than one level away, so it should warn
295
- | ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
296
296
297
297
error: unsafe block missing a safety comment
298
298
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:545:12
@@ -349,10 +349,10 @@ LL | const UNIX_EPOCH_JULIAN_DAY: i32 =
349
349
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
350
350
|
351
351
help: consider removing the safety comment
352
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:699:5
352
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:699:8
353
353
|
354
354
LL | // SAFETY: fail ONLY if `accept-comment-above-attribute = false`
355
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^
355
+ | ^^^^^^^
356
356
357
357
error: statement has unnecessary safety comment
358
358
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:721:5
@@ -361,10 +361,10 @@ LL | _ = bar();
361
361
| ^^^^^^^^^^
362
362
|
363
363
help: consider removing the safety comment
364
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:720:5
364
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:720:8
365
365
|
366
366
LL | // SAFETY: unnecessary_safety_comment triggers here
367
- | ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
367
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
368
368
369
369
error: module has unnecessary safety comment
370
370
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:741:5
@@ -373,10 +373,10 @@ LL | mod x {}
373
373
| ^^^^^^^^
374
374
|
375
375
help: consider removing the safety comment
376
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:740:5
376
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:740:8
377
377
|
378
378
LL | // SAFETY: ...
379
- | ^^^^^^^ ^^^^^^^
379
+ | ^^^^^^^
380
380
381
381
error: module has unnecessary safety comment
382
382
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:746:5
@@ -385,10 +385,10 @@ LL | mod y {}
385
385
| ^^^^^^^^
386
386
|
387
387
help: consider removing the safety comment
388
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:744:5
388
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:744:8
389
389
|
390
390
LL | // SAFETY: ...
391
- | ^^^^^^^ ^^^^^^^
391
+ | ^^^^^^^
392
392
393
393
error: module has unnecessary safety comment
394
394
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:751:5
@@ -397,10 +397,10 @@ LL | mod z {}
397
397
| ^^^^^^^^
398
398
|
399
399
help: consider removing the safety comment
400
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:750:5
400
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:750:8
401
401
|
402
402
LL | // SAFETY: ...
403
- | ^^^^^^^ ^^^^^^^
403
+ | ^^^^^^^
404
404
405
405
error: module has unnecessary safety comment
406
406
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:759:5
@@ -409,10 +409,10 @@ LL | mod y {}
409
409
| ^^^^^^^^
410
410
|
411
411
help: consider removing the safety comment
412
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:757:5
412
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:757:8
413
413
|
414
414
LL | // SAFETY: ...
415
- | ^^^^^^^ ^^^^^^^
415
+ | ^^^^^^^
416
416
417
417
error: statement has unnecessary safety comment
418
418
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:774:9
@@ -421,10 +421,10 @@ LL | let x = 34;
421
421
| ^^^^^^^^^^^
422
422
|
423
423
help: consider removing the safety comment
424
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:772:9
424
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:772:12
425
425
|
426
426
LL | // SAFETY: ...
427
- | ^^^ ^^^^^^^^^^^
427
+ | ^^^^^^^^^^^
428
428
429
429
error: function has unnecessary safety comment
430
430
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:781:5
@@ -433,10 +433,10 @@ LL | unsafe fn unsafe_comment() {}
433
433
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
434
434
|
435
435
help: consider changing the `SAFETY` comment for a `# Safety` doc comment
436
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:780:5
436
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:780:8
437
437
|
438
438
LL | // SAFETY: Bla
439
- | ^^^^^^^ ^^^^^^^
439
+ | ^^^^^^^
440
440
441
441
error: function has unnecessary safety comment
442
442
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:787:5
@@ -448,7 +448,7 @@ help: consider changing the `SAFETY` comment for a `# Safety` doc comment
448
448
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:785:8
449
449
|
450
450
LL | SAFETY: Bla
451
- | ^^^^^^^^^^^
451
+ | ^^^^^^^
452
452
453
453
error: function has unnecessary safety comment
454
454
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:791:5
@@ -457,10 +457,10 @@ LL | fn safe_comment() {}
457
457
| ^^^^^^^^^^^^^^^^^^^^
458
458
|
459
459
help: consider removing the safety comment
460
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:790:5
460
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:790:8
461
461
|
462
462
LL | // SAFETY: Bla
463
- | ^^^^^^^ ^^^^^^^
463
+ | ^^^^^^^
464
464
465
465
error: function has unnecessary safety comment
466
466
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:795:5
@@ -469,10 +469,10 @@ LL | fn safe_doc_comment() {}
469
469
| ^^^^^^^^^^^^^^^^^^^^^^^^
470
470
|
471
471
help: consider removing the safety comment
472
- --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:794:5
472
+ --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:794:9
473
473
|
474
474
LL | /// SAFETY: Bla
475
- | ^^^^^^^^ ^^^^^^^
475
+ | ^^^^^^^
476
476
477
477
error: aborting due to 50 previous errors
478
478
0 commit comments