rust/compiler
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
..
rustc Add a new rustc_driver dylib to rexport rustc_driver_impl 2023-02-02 07:34:41 +01:00
rustc_abi Unify validity checks into a single query 2023-02-23 18:42:36 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Rename MapInPlace as FlatMapInPlace. 2023-03-08 15:53:56 +11:00
rustc_ast_lowering Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_ast_passes Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_ast_pretty Force parentheses around match expression in binary expression 2023-03-02 21:58:49 +01:00
rustc_attr Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_baked_icu_data update ICU4X to 1.1.0 2023-02-04 22:28:59 +01:00
rustc_borrowck Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_builtin_macros Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_codegen_cranelift Auto merge of #109001 - matthiaskrgr:rollup-a3agnwp, r=matthiaskrgr 2023-03-11 07:28:44 +00:00
rustc_codegen_gcc Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_codegen_llvm Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_codegen_ssa Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_const_eval Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_data_structures Rollup merge of #108887 - nnethercote:rename-MapInPlace, r=lqd 2023-03-08 21:24:53 +01:00
rustc_driver Remove unneeded extern crate 2023-02-02 07:47:39 +01:00
rustc_driver_impl Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_error_codes Address the new odd backticks tidy lint in compiler/ 2023-03-11 20:40:18 +01:00
rustc_error_messages Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_errors Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_expand Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_feature Stabilize movbe target feature 2023-03-02 17:14:47 -05:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Only look for param in generics if it actually comes from generics 2023-02-28 06:27:56 +00:00
rustc_hir_analysis Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_hir_pretty Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_hir_typeck Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_incremental Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_index Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
rustc_infer Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_interface Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_lexer fix(lexer): not skipped whitespace warning for '\x0c' 2023-03-09 22:44:58 +08:00
rustc_lint Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_lint_defs Rollup merge of #108806 - cjgillot:query-lints, r=davidtwco 2023-03-11 15:43:15 +01:00
rustc_llvm Remove an extraneous include 2023-03-07 22:46:39 -08:00
rustc_log Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errors 2023-02-11 17:18:44 +01:00
rustc_macros Allow using bool for optional diagnostics 2023-02-27 12:54:11 +00:00
rustc_metadata Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_middle Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_mir_build Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_mir_dataflow Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_mir_transform Rollup merge of #108902 - lcnr:do-while-sus, r=davidtwco,Nilstrieb 2023-03-10 21:15:46 +01:00
rustc_monomorphize Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_parse Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_parse_format Replace some thens with some then_somes 2023-02-16 15:26:03 +00:00
rustc_passes Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_plugin_impl Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_privacy Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_query_impl Auto merge of #108167 - Zoxc:query-config-instance-slim, r=cjgillot 2023-03-07 18:55:36 +00:00
rustc_query_system Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_resolve Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_serialize Emit the enum discriminant separately for the Encodable macro 2023-02-25 01:04:56 +01:00
rustc_session Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_smir Change item collection to be on demand 2023-03-07 12:47:25 -08:00
rustc_span Rollup merge of #104363 - WaffleLapkin:bonk_box_new, r=Nilstrieb 2023-03-11 15:43:11 +01:00
rustc_symbol_mangling Simplify message paths 2023-03-11 22:51:57 +01:00
rustc_target Use FxIndexSet instead of FxHashSet for asm_target_features query. 2023-03-01 10:19:26 +01:00
rustc_trait_selection Rollup merge of #108726 - est31:backticks_matchmaking_tidy, r=Nilstrieb 2023-03-12 08:13:25 +01:00
rustc_traits Add mk_canonical_var_infos_from_iter. 2023-02-24 07:33:02 +11:00
rustc_transmute rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00
rustc_ty_utils Auto merge of #108682 - est31:simplify_dirs, r=davidtwco 2023-03-12 03:51:21 +00:00
rustc_type_ir Address the new odd backticks tidy lint in compiler/ 2023-03-11 20:40:18 +01:00