diff options
| author | est31 <MTest31@outlook.com> | 2023-03-03 08:04:53 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2023-03-11 20:40:18 +0100 |
| commit | 7a686bf41dbaf065203336c1e99e0406de621587 (patch) | |
| tree | 10b526a2a8fba7e22f7e46b1fd641cb73699d00e /tests/debuginfo/enum-thinlto.rs | |
| parent | cde0b164d28382da7de892172d9129f21f8bb179 (diff) | |
| download | rust-7a686bf41dbaf065203336c1e99e0406de621587.tar.gz rust-7a686bf41dbaf065203336c1e99e0406de621587.zip | |
tidy: enforce comment blocks to have even number of backticks
Some comments may be formed like:
// This function takes a tuple `(Vec<String>,
// Box<[u8]>)` and transforms it into `Vec<u8>`.
where the "back-ticked" section wraps around.
Therefore, we can't make a single-line based
lint.
We also cannot make the lint paragraph based,
as it would otherwise complain about inline
code blocks:
/// ```
/// use super::Foo;
///
/// fn main() { Foo::new(); }
/// ```
For the future, one could introduce some checks
to treat code blocks specially, but such code
would make the check even more complicated.
Diffstat (limited to 'tests/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
