Move working checks into separate test files
This commit is contained in:
parent
4ba54ff60b
commit
d4293ffcb3
4 changed files with 17 additions and 4 deletions
8
src/test/rustdoc-ui/doc-test-attr-pass.rs
Normal file
8
src/test/rustdoc-ui/doc-test-attr-pass.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// check-pass
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![deny(invalid_doc_attributes)]
|
||||
#![doc(test(no_crate_inject))]
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
|
||||
pub fn foo() {}
|
|
@ -10,7 +10,5 @@
|
|||
#![doc(test(a))]
|
||||
//~^ ERROR unknown `doc(test)` attribute `a`
|
||||
//~^^ WARN this was previously accepted by the compiler
|
||||
#![doc(test(no_crate_inject))]
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
|
||||
pub fn foo() {}
|
||||
|
|
9
src/test/ui/rustdoc/doc-test-attr-pass.rs
Normal file
9
src/test/ui/rustdoc/doc-test-attr-pass.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// check-pass
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![deny(invalid_doc_attributes)]
|
||||
#![doc(test(no_crate_inject))]
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
#![doc(test())]
|
||||
|
||||
pub fn foo() {}
|
|
@ -10,7 +10,5 @@
|
|||
#![doc(test(a))]
|
||||
//~^ ERROR unknown `doc(test)` attribute `a`
|
||||
//~^^ WARN this was previously accepted by the compiler
|
||||
#![doc(test(no_crate_inject))]
|
||||
#![doc(test(attr(deny(warnings))))]
|
||||
|
||||
pub fn foo() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue