about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-12 08:13:25 +0100
committerGitHub <noreply@github.com>2023-03-12 08:13:25 +0100
commit9668ae5eb8b169557a12d85e4088274780ef7d48 (patch)
treee2c25d42231cbac9972f05359cc11bb8449e9646 /compiler/rustc_codegen_gcc
parent501ad021b9a4fb2cd6a39e0302d22f169f6166b0 (diff)
parentb2aeb071370afeefceec4d21734e801837dd72e4 (diff)
downloadrust-9668ae5eb8b169557a12d85e4088274780ef7d48.tar.gz
rust-9668ae5eb8b169557a12d85e4088274780ef7d48.zip
Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb
tidy: enforce comment blocks to have an even number of backticks

After PR #108694, most unmatched backticks in `compiler/` comments have been eliminated. This PR adds a tidy lint to ensure no new unmatched backticks are added, and either addresses the lint in the remaining instances it found, or allows it.

Very often, backtick containing sections wrap around lines, for example:

```Rust
// This function takes a tuple `(Vec<String>,
// Box<[u8]>)` and transforms it into `Vec<u8>`.
```

The lint is implemented to work on top of blocks, counting each line with a `//` into a block, and counting if there are an odd or even number of backticks in the entire block, instead of looking at just a single line.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions