diff options
| author | bors <bors@rust-lang.org> | 2023-06-17 13:25:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-17 13:25:03 +0000 |
| commit | bb78d76d48bb08b2b76a6497d99a60b45c8fabc6 (patch) | |
| tree | 4f0e0fead7f605cf49885c228a4d21734405c07f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 965f4a84928f61b7ea4a33158d44cc4c6d698481 (diff) | |
| parent | d6102018bf35786922996068e705bcdd463ab158 (diff) | |
| download | rust-bb78d76d48bb08b2b76a6497d99a60b45c8fabc6.tar.gz rust-bb78d76d48bb08b2b76a6497d99a60b45c8fabc6.zip | |
Auto merge of #10886 - lochetti:fix_10832, r=Centri3,xFrednet
Adding configuration to allow safety comment above stmt containing unsafe block Adding a new configuration, `accept-comment-above-statement`, to allow a safety comment to be placed before the statement that has the `unsafe` block. It affects the `undocumented_unsafe_blocks` lint. The default value for this configuration will be `false`. So the user has to opt-in for the change. This PR fixes https://github.com/rust-lang/rust-clippy/issues/10832 --- changelog: Enhancement [`undocumented_unsafe_blocks`]: Added `accept-comment-above-statement` configuration. [#10886](https://github.com/rust-lang/rust-clippy/pull/10886)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
