Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/rustdoc-ui/lints/deny-cmd.deny.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
error: missing documentation for a struct
--> $DIR/deny-cmd.rs:8:1
|
LL | pub struct Foo;
| ^^^^^^^^^^^^^^
|
= note: requested on the command line with `-D missing-docs`

error: aborting due to 1 previous error

9 changes: 9 additions & 0 deletions tests/rustdoc-ui/lints/deny-cmd.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//@ revisions: deny allow

@lolbinarycat lolbinarycat Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a comment describing the purpose of the test.

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, it's done.

//@[deny] compile-flags: -Dmissing_docs
//@[allow] compile-flags: -Amissing_docs
//@[allow] check-pass

//! Verify that the `-D` flag, passed to rustdoc, works as expected

pub struct Foo;
//[deny]~^ ERROR missing_docs
Loading