about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-11 20:04:25 +0200
committerGitHub <noreply@github.com>2024-09-11 20:04:25 +0200
commit66727ea1a29e0075b8d40d24aa09a85c9c006e3c (patch)
treea5fa074554a35c7948214383485133e46c0212b7 /compiler/rustc_codegen_llvm/src
parent78cf023d8c3413914b93bc8f95c7efcede54fb3f (diff)
parentcc34d64c511feaf576854797fc291e03f5f275a7 (diff)
downloadrust-66727ea1a29e0075b8d40d24aa09a85c9c006e3c.tar.gz
rust-66727ea1a29e0075b8d40d24aa09a85c9c006e3c.zip
Rollup merge of #130219 - ogoffart:missing-docs-test, r=Urgau
Fix false positive with `missing_docs` and `#[test]`

Since #130025, the compiler don't ignore missing_docs when compiling the tests. But there is now a false positive warning for every `#[test]`

For example, this code
```rust
//! Crate docs

fn just_a_test() {}
```

Would emit this warning when running `cargo test`

```
warning: missing documentation for a constant
 --> src/lib.rs:5:1
  |
4 | #[test]
  | ------- in this procedural macro expansion
5 | fn just_a_test() {}
  | ^^^^^^^^^^^^^^^^^^^
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions