diff options
| author | Trevor Gross <tmgross@umich.edu> | 2023-07-17 00:30:24 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2023-09-20 03:41:33 -0400 |
| commit | 1b3e5dd0fcae6056e8ab435b795eb4d73f69230d (patch) | |
| tree | 64a7a6d1f072d6cdf81988885d04fbc70522a442 /compiler/rustc_codegen_llvm/src | |
| parent | f464149b8f3e4d24139491a8f4049bc6eef0de38 (diff) | |
| download | rust-1b3e5dd0fcae6056e8ab435b795eb4d73f69230d.tar.gz rust-1b3e5dd0fcae6056e8ab435b795eb4d73f69230d.zip | |
Change default configuration of `undocumented_unsafe_blocks`
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. 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')
0 files changed, 0 insertions, 0 deletions
