rust/compiler/rustc_builtin_macros/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
..
assert Use ThinVec in ast::Block. 2023-02-21 11:51:56 +11:00
deriving Address the new odd backticks tidy lint in compiler/ 2023-03-11 20:40:18 +01:00
format_foreign Use as_deref in compiler (but only where it makes sense) 2022-11-16 21:58:58 +00:00
alloc_error_handler.rs Use ThinVec in ast::Block. 2023-02-21 11:51:56 +11:00
asm.rs Rollup merge of #105798 - Amanieu:relax-asm, r=joshtriplett 2023-03-10 21:15:42 +01:00
assert.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
cfg_accessible.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00
cfg_eval.rs Workaround unstable stmt_expr_attributes for method receiver expressions. 2022-10-23 09:27:12 +00:00
cfg.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
cmdline_attrs.rs make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
compile_error.rs check_doc_keyword: don't alloc string for emptiness check 2022-04-08 11:45:57 +03:00
concat_bytes.rs Rollup merge of #105620 - TaKO8Ki:remove-unnecessary-uses-of-clone, r=compiler-errors 2022-12-13 01:17:10 +01:00
concat_idents.rs Remove TreeAndSpacing. 2022-07-29 15:52:15 +10:00
concat.rs allow negative numeric literals in concat! 2023-01-15 12:48:53 +13:00
derive.rs Remove token::Lit from ast::MetaItemLit. 2022-12-02 13:49:19 +11:00
edition_panic.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
env.rs Explain compile-time vs run-time difference in env!() error message 2023-02-28 16:44:59 +00:00
format_foreign.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
format.rs Replace format flags u32 by enums and bools. 2023-01-27 08:53:39 +01:00
global_allocator.rs Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
lib.rs Simplify message paths 2023-03-11 22:51:57 +01:00
log_syntax.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
proc_macro_harness.rs Use ThinVec in ast::Block. 2023-02-21 11:51:56 +11:00
source_util.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
standard_library_imports.rs Replace some thens with some then_somes 2023-02-16 15:26:03 +00:00
test_harness.rs Use ThinVec in ast::Block. 2023-02-21 11:51:56 +11:00
test.rs Use ThinVec in a few more AST types. 2023-02-21 11:51:56 +11:00
trace_macros.rs Remove TreeAndSpacing. 2022-07-29 15:52:15 +10:00
type_ascribe.rs Add unstable type_ascribe macro 2022-11-19 22:16:42 +01:00
util.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00