about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-23 11:51:53 +0000
committerbors <bors@rust-lang.org>2024-07-23 11:51:53 +0000
commitbd1224d8aa1cc90ff8c5a2ba3f90785ec97845f5 (patch)
tree1faeafa2a4b2b5e8918022620b4e7f043e224ebd /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentdf1baedfdeb415346daff5e0b28aed9a15da6c0f (diff)
parent04693a4eca38f8f1fe419b2118c815830ff32a14 (diff)
downloadrust-bd1224d8aa1cc90ff8c5a2ba3f90785ec97845f5.tar.gz
rust-bd1224d8aa1cc90ff8c5a2ba3f90785ec97845f5.zip
Auto merge of #13148 - xFrednet:lintcheck-link-correction-again, r=Alexendoo
Lintcheck: Support underscores replacement in URL crate names

The generated URLs use `{krate}` for the crate name. This works well for the first part of the docs.rs domain, but the second part is actually the root module, which requires a replacement of all dashes with underscores. This PR adds `{krate_}` for the root module name.

Diff:

```diff
 Removed `clippy::needless_borrows_for_generic_args` in `rustls-pemfile` at
-https://docs.rs/rustls-pemfile/2.1.2/src/rustls-pemfile/pemfile.rs.html#194
+https://docs.rs/rustls-pemfile/2.1.2/src/rustls_pemfile/pemfile.rs.html#194
```

> Example before: https://github.com/xFrednet/rust-clippy/actions/runs/10054236377?pr=4
> Example after: https://github.com/xFrednet/rust-clippy/actions/runs/10054878594?pr=4

---

changelog: none

r? `@Alexendoo`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions