diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-11 20:04:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 20:04:25 +0200 |
| commit | 66727ea1a29e0075b8d40d24aa09a85c9c006e3c (patch) | |
| tree | a5fa074554a35c7948214383485133e46c0212b7 /compiler/rustc_codegen_llvm/src | |
| parent | 78cf023d8c3413914b93bc8f95c7efcede54fb3f (diff) | |
| parent | cc34d64c511feaf576854797fc291e03f5f275a7 (diff) | |
| download | rust-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
