rust/compiler/rustc_codegen_llvm/src
Matthias Krüger 9668ae5eb8
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.
2023-03-12 08:13:25 +01:00
..
back record llvm cgu instruction stats 2023-02-25 16:18:56 +08:00
coverageinfo Use IntoIterator for mk_fn_sig. 2023-02-17 22:24:34 +11:00
debuginfo Address the new odd backticks tidy lint in compiler/ 2023-03-11 20:40:18 +01:00
llvm Remove references to PassManagerBuilder 2023-03-06 16:55:52 +01:00
abi.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
allocator.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
asm.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
attributes.rs Add kernel-address sanitizer support for freestanding targets 2023-02-14 20:54:25 -05:00
base.rs Remove several unused methods from MiscMethods 2022-10-01 16:45:07 +00:00
builder.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
callee.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
common.rs Name LLVM anonymous constants by a hash of their contents 2023-02-25 08:53:41 +01:00
consts.rs fix some lines, and do a consistency fix 2023-02-16 18:58:08 +02:00
context.rs Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
declare.rs Add LLVM KCFI support to the Rust compiler 2022-12-08 17:24:39 -08:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
intrinsic.rs Auto merge of #95317 - Jules-Bertholet:round_ties_to_even, r=pnkfelix,m-ou-se,scottmcm 2023-03-07 09:43:12 +00:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
llvm_util.rs Remove pass initialization code 2023-03-01 09:24:13 +01:00
mono_item.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
type_.rs Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3 2022-12-10 09:24:43 +01:00
type_of.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
va_arg.rs Implement va_list and va_arg for s390x FFI 2022-12-19 21:07:57 +01:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00