On Mon, Mar 24, 2025 at 8:38 PM Miguel Ojeda <miguel.ojeda.sando...@gmail.com> wrote: > > Yeah, I asked upstream if we could have something that at least > detects what could have been intra-doc links, because that should not > have too many false positives since it is a subset: > > https://github.com/rust-lang/rust/issues/131510 > > It is still tricky, because e.g. `Some` or `None` would need to be > excluded, even if you require the exact same case. So it probably > still requires extra heuristics. > > Then there is: > > https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown > > which is closer to your idea. It has a few false positives (e.g. > KUnit) from a quick try, so probably we cannot enable it for > everything, unless we commit to maintain a list of terms in the > config. It spots a handful of things we should fix, though -- I can > send a few patches or create good first issues.
I went ahead and sent a quick series for the latter: https://lore.kernel.org/rust-for-linux/20250324210359.1199574-1-oj...@kernel.org/ Cheers, Miguel