rust/tests
bors 790513056f Auto merge of #8138 - r00ster91:safety, r=giraffate
Fix `SAFETY` comment tag casing in undocumented_unsafe_blocks

This changes the lint introduced in #7748 to suggest adding a `SAFETY` comment instead of a `Safety` comment.

Searching for `// Safety:` in rust-lang/rust yields 67 results while `// SAFETY:` yields 1072.
I think it's safe to say that this comment tag is written in upper case, just like `TODO`, `FIXME` and so on are. As such I would expect this lint to follow the official convention as well.

Note that I intentionally introduced some casing diversity in `tests/ui/undocumented_unsafe_blocks.rs` to test more cases than just `Safety:`.

changelog: Capitalize `SAFETY` comment in [`undocumented_unsafe_blocks`]
2021-12-20 00:15:18 +00:00
..
cargo Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
ui Auto merge of #8138 - r00ster91:safety, r=giraffate 2021-12-20 00:15:18 +00:00
ui-cargo Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
ui-internal Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
ui-toml Fix grammar issues 2021-12-07 10:08:22 -05:00
ui_test Merge commit '91496c2ac6' into clippyup 2021-10-21 13:11:36 +02:00
clippy.toml Merge commit '3ae8faff4d' into clippyup 2021-06-03 08:41:37 +02:00
compile-test.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
dogfood.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
fmt.rs Merge commit 'a5d597637d' into clippyup 2021-12-06 12:33:31 +01:00
integration.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
lint_message_convention.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
missing-test-files.rs Merge commit 'e181011378' into clippyup 2021-11-04 12:52:36 +00:00
versioncheck.rs Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00