mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Move working checks into separate test files
This commit is contained in:
parent
4ba54ff60b
commit
d4293ffcb3
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…
Reference in New Issue
Block a user