diff options
| author | bors <bors@rust-lang.org> | 2024-06-27 10:21:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-27 10:21:53 +0000 |
| commit | aaaa9264dcd7d4054aa7c1b955ed1c8510924cae (patch) | |
| tree | d75c6ab396c8d4bb8b93c19ac44a93cba5995847 /compiler/rustc_codegen_llvm/src/llvm/mod.rs | |
| parent | 863179081ee12284349b6356e7bb444bcfde2846 (diff) | |
| parent | 80b25b4c82d1a7ffb77dfed48e3bcebfe3506f43 (diff) | |
| download | rust-aaaa9264dcd7d4054aa7c1b955ed1c8510924cae.tar.gz rust-aaaa9264dcd7d4054aa7c1b955ed1c8510924cae.zip | |
Auto merge of #12995 - reillysiemens:fix-doc-markdown-devops-false-positive, r=blyxyas
Fix doc_markdown DevOps false positive
This fixes an issue where the word "DevOps" ends up as a false positive for the `doc_markdown` lint.
In a doc comment like this
```rust
/// Call the Azure DevOps REST API.
pub fn example() {}
```
the word "DevOps" is highlighted as something which should be in backticks.
```
warning: item in documentation is missing backticks
--> src/lib.rs:1:20
|
1 | /// Call the Azure DevOps REST API.
| ^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
= note: requested on the command line with `-W clippy::doc-markdown`
help: try
|
1 | /// Call the Azure `DevOps` REST API.
| ~~~~~~~~
warning: `example` (lib) generated 1 warning (run `cargo clippy --fix --lib -p example` to apply 1 suggestion)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
```
This could be overriden with the `doc-valid-idents` configuration parameter as noted by the [documentation](https://rust-lang.github.io/rust-clippy/master/index.html#/doc_markdown), but I believe the word "DevOps" is sufficiently common to belong alongside exceptions like "GitHub" and "GitLab".
changelog: [`doc_markdown`]: Fix DevOps false positive.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions
