Skip to content

Commit d4293ff

Browse files
Move working checks into separate test files
1 parent 4ba54ff commit d4293ff

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// check-pass
2+
3+
#![crate_type = "lib"]
4+
#![deny(invalid_doc_attributes)]
5+
#![doc(test(no_crate_inject))]
6+
#![doc(test(attr(deny(warnings))))]
7+
8+
pub fn foo() {}

src/test/rustdoc-ui/doc-test-attr.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@
1010
#![doc(test(a))]
1111
//~^ ERROR unknown `doc(test)` attribute `a`
1212
//~^^ WARN this was previously accepted by the compiler
13-
#![doc(test(no_crate_inject))]
14-
#![doc(test(attr(deny(warnings))))]
1513

1614
pub fn foo() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// check-pass
2+
3+
#![crate_type = "lib"]
4+
#![deny(invalid_doc_attributes)]
5+
#![doc(test(no_crate_inject))]
6+
#![doc(test(attr(deny(warnings))))]
7+
#![doc(test())]
8+
9+
pub fn foo() {}

src/test/ui/rustdoc/doc-test-attr.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@
1010
#![doc(test(a))]
1111
//~^ ERROR unknown `doc(test)` attribute `a`
1212
//~^^ WARN this was previously accepted by the compiler
13-
#![doc(test(no_crate_inject))]
14-
#![doc(test(attr(deny(warnings))))]
1513

1614
pub fn foo() {}

0 commit comments

Comments
 (0)