@@ -247,10 +247,10 @@ LL | const BIG_NUMBER: i32 = 1000000;
247247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248248 |
249249help: 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
251251 |
252252LL | // SAFETY:
253- | ^^^ ^^^^^^^
253+ | ^^^^^^^
254254 = note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
255255 = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
256256
@@ -289,10 +289,10 @@ LL | | };
289289 | |______^
290290 |
291291help: 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
293293 |
294294LL | // SAFETY: this is more than one level away, so it should warn
295- | ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
296296
297297error: unsafe block missing a safety comment
298298 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:545:12
@@ -349,10 +349,10 @@ LL | const UNIX_EPOCH_JULIAN_DAY: i32 =
349349 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
350350 |
351351help: 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
353353 |
354354LL | // SAFETY: fail ONLY if `accept-comment-above-attribute = false`
355- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^
355+ | ^^^^^^^
356356
357357error: statement has unnecessary safety comment
358358 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:721:5
@@ -361,10 +361,10 @@ LL | _ = bar();
361361 | ^^^^^^^^^^
362362 |
363363help: 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
365365 |
366366LL | // SAFETY: unnecessary_safety_comment triggers here
367- | ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
367+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
368368
369369error: module has unnecessary safety comment
370370 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:741:5
@@ -373,10 +373,10 @@ LL | mod x {}
373373 | ^^^^^^^^
374374 |
375375help: 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
377377 |
378378LL | // SAFETY: ...
379- | ^^^^^^^ ^^^^^^^
379+ | ^^^^^^^
380380
381381error: module has unnecessary safety comment
382382 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:746:5
@@ -385,10 +385,10 @@ LL | mod y {}
385385 | ^^^^^^^^
386386 |
387387help: 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
389389 |
390390LL | // SAFETY: ...
391- | ^^^^^^^ ^^^^^^^
391+ | ^^^^^^^
392392
393393error: module has unnecessary safety comment
394394 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:751:5
@@ -397,10 +397,10 @@ LL | mod z {}
397397 | ^^^^^^^^
398398 |
399399help: 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
401401 |
402402LL | // SAFETY: ...
403- | ^^^^^^^ ^^^^^^^
403+ | ^^^^^^^
404404
405405error: module has unnecessary safety comment
406406 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:759:5
@@ -409,10 +409,10 @@ LL | mod y {}
409409 | ^^^^^^^^
410410 |
411411help: 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
413413 |
414414LL | // SAFETY: ...
415- | ^^^^^^^ ^^^^^^^
415+ | ^^^^^^^
416416
417417error: statement has unnecessary safety comment
418418 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:774:9
@@ -421,10 +421,10 @@ LL | let x = 34;
421421 | ^^^^^^^^^^^
422422 |
423423help: 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
425425 |
426426LL | // SAFETY: ...
427- | ^^^ ^^^^^^^^^^^
427+ | ^^^^^^^^^^^
428428
429429error: function has unnecessary safety comment
430430 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:781:5
@@ -433,10 +433,10 @@ LL | unsafe fn unsafe_comment() {}
433433 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
434434 |
435435help: 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
437437 |
438438LL | // SAFETY: Bla
439- | ^^^^^^^ ^^^^^^^
439+ | ^^^^^^^
440440
441441error: function has unnecessary safety comment
442442 --> 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
448448 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:785:8
449449 |
450450LL | SAFETY: Bla
451- | ^^^^^^^^^^^
451+ | ^^^^^^^
452452
453453error: function has unnecessary safety comment
454454 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:791:5
@@ -457,10 +457,10 @@ LL | fn safe_comment() {}
457457 | ^^^^^^^^^^^^^^^^^^^^
458458 |
459459help: 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
461461 |
462462LL | // SAFETY: Bla
463- | ^^^^^^^ ^^^^^^^
463+ | ^^^^^^^
464464
465465error: function has unnecessary safety comment
466466 --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:795:5
@@ -469,10 +469,10 @@ LL | fn safe_doc_comment() {}
469469 | ^^^^^^^^^^^^^^^^^^^^^^^^
470470 |
471471help: 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
473473 |
474474LL | /// SAFETY: Bla
475- | ^^^^^^^^ ^^^^^^^
475+ | ^^^^^^^
476476
477477error: aborting due to 50 previous errors
478478
0 commit comments