about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-20 08:06:54 +0000
committerbors <bors@rust-lang.org>2023-09-20 08:06:54 +0000
commitddbe1100813d75898d6cde56a498813ac5799e9d (patch)
tree0bfa0d277d63e5f0a094d5489d562d58c11c9962 /compiler/rustc_codegen_llvm/src/errors.rs
parentece3878c8cc74da936d067ee25a4ccc959ea55dd (diff)
parent1b3e5dd0fcae6056e8ab435b795eb4d73f69230d (diff)
downloadrust-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