You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling deny_missing_docs v0.1.0 (deny_missing_docs)
error: missing documentation for the crate
--> src/main.rs:1:1
|
1 | / fn main() {
2 | | println!("Hello, world!");
3 | | }
| |_^
|
= note: requested on the command line with `-D missing-docs`
error: missing documentation for the crate
--> tests/integration.rs:1:1
|
1 | / #[test]
2 | | fn do_nothing() {}
| |__________________^
|
= note: requested on the command line with `-D missing-docs`
error: could not compile `deny_missing_docs` (bin "deny_missing_docs") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: missing documentation for a constant
--> tests/integration.rs:2:1
|
1 | #[test]
| ------- in this procedural macro expansion
2 | fn do_nothing() {}
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `deny_missing_docs` (bin "deny_missing_docs" test) due to 1 previous error
error: could not compile `deny_missing_docs` (test "integration") due to 2 previous errors
The text was updated successfully, but these errors were encountered:
ytmimi
changed the title
nightly-2024-09-11#[test] code complains about missing_docs when missing-docs = "deny"nightly-2024-09-11#[test] code complains about missing_docs when missing-docs = "deny" lint is configured
Sep 11, 2024
Urgau
removed
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Sep 11, 2024
When trying to run tests with
cargo +nightly-2024-09-11 test
I'm seeing errors when themissing-docs = "deny"
lint is configured in Cargo.toml.I've put together this minimal repo that reproduces the issue:
I tried running:
I believe this is happening because of the test macro expansion and the recent changes to emit missing_doc lints during tests (33855f8)
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: