diff options
| author | bors <bors@rust-lang.org> | 2021-12-20 00:15:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-20 00:15:18 +0000 |
| commit | 790513056f8fc6aad10f479454d449da2892d284 (patch) | |
| tree | c2343e21c192606bffba3d46621314d1fd9af602 /src/test/codegen/src-hash-algorithm | |
| parent | 1962ce08ef4b6e9cade506ecffca216f7685691f (diff) | |
| parent | eba441391d7830081befd4b2dfa23a0b78ace92b (diff) | |
| download | rust-790513056f8fc6aad10f479454d449da2892d284.tar.gz rust-790513056f8fc6aad10f479454d449da2892d284.zip | |
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`]
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
