diff options
| author | Alejandra González <blyxyas@gmail.com> | 2025-06-05 09:09:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-05 09:09:59 +0000 |
| commit | c90c7c494dad045f264a32923364690ab202f3db (patch) | |
| tree | f594d0065c387205621b385cfa9df925235aa49e /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | a76c2b34e718b9a04adf47fb1a4110e84c1557d2 (diff) | |
| parent | fcfbcc81f23f82d869beba7988d0d25c4d8dc2b5 (diff) | |
| download | rust-c90c7c494dad045f264a32923364690ab202f3db.tar.gz rust-c90c7c494dad045f264a32923364690ab202f3db.zip | |
doc_suspicious_footnotes: lint text that looks like a footnote (#14708)
changelog: [`doc_suspicious_footnotes`]: lint for text that looks like a footnote reference but has no definition This is an alternative to https://github.com/rust-lang/rust/pull/137803, meant to address the concerns about false positives. This lint only fires when the apparent footnote reference has a name that's made from pure ASCII digits. This choice is justified by running lintcheck on the top 200 crates, plus the clippy default set: 1. [I ran lintcheck](https://gist.github.com/notriddle/59072476c9c1fd569fee421270dad665) with a modded version of this lint that didn't check for digits only. It produced a false positive warning on a line in mdbook that had a regex, and no true positives at all. 2. [I also ran lintcheck](https://gist.github.com/notriddle/74eb8c9e1939b9f5c5549bf1d4fa238a) with a custom lint that fired on any valid footnote reference with a non-ascii-digit name. `cargo` uses one in its job_queue module, and that's all it found. cc @GuillaumeGomez
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
