diff options
| author | bors <bors@rust-lang.org> | 2023-09-20 08:06:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-20 08:06:54 +0000 |
| commit | ddbe1100813d75898d6cde56a498813ac5799e9d (patch) | |
| tree | 0bfa0d277d63e5f0a094d5489d562d58c11c9962 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | ece3878c8cc74da936d067ee25a4ccc959ea55dd (diff) | |
| parent | 1b3e5dd0fcae6056e8ab435b795eb4d73f69230d (diff) | |
| download | rust-ddbe1100813d75898d6cde56a498813ac5799e9d.tar.gz rust-ddbe1100813d75898d6cde56a498813ac5799e9d.zip | |
Auto merge of #11170 - tgross35:undocumented-unsafe-blocks-defaults, r=Centri3
Change defaults of `accept-comment-above-statement` and `accept-comment-above-attributes` This patch sets the two configuration options for `undocumented_unsafe_blocks` to `true` by default: these are `accept-comment-above-statement` and `accept-comment-above-attributes`. Having these values `false` by default prevents what many users would consider clean code, e.g. placing the `// SAFETY:` comment above a single-line functino call, rather than directly next to the argument. This was originally discussed in https://github.com/rust-lang/rust-clippy/issues/11162 changelog: [`undocumented_unsafe_blocks`]: set `accept-comment-above-statement` and `accept-comment-above-attributes` to `true` by default.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
