Now also displays portability tags.
This commit is contained in:
parent
1e2ab998c3
commit
fca088ae23
5 changed files with 36 additions and 14 deletions
|
|
@ -1,21 +1,36 @@
|
|||
#![crate_name = "foo"]
|
||||
#![feature(doc_cfg)]
|
||||
|
||||
pub mod io {
|
||||
pub mod tag {
|
||||
#[deprecated(since = "0.1.8", note = "Use bar() instead")]
|
||||
pub trait Reader {}
|
||||
pub trait Writer {}
|
||||
pub trait Deprecated {}
|
||||
|
||||
#[doc(cfg(feature = "sync"))]
|
||||
pub trait Portability {}
|
||||
|
||||
pub trait Unstable {}
|
||||
}
|
||||
|
||||
// @has foo/mod1/index.html
|
||||
pub mod mod1 {
|
||||
// @has - '//code' 'pub use io::Reader;'
|
||||
// @has - '//code' 'pub use tag::Deprecated;'
|
||||
// @has - '//span' 'Deprecated'
|
||||
pub use io::Reader;
|
||||
// @!has - '//span' 'sync'
|
||||
pub use tag::Deprecated;
|
||||
}
|
||||
|
||||
// @has foo/mod2/index.html
|
||||
pub mod mod2 {
|
||||
// @has - '//code' 'pub use io::Writer;'
|
||||
// @has - '//code' 'pub use tag::Portability;'
|
||||
// @!has - '//span' 'Deprecated'
|
||||
pub use io::Writer;
|
||||
// @has - '//span' 'sync'
|
||||
pub use tag::Portability;
|
||||
}
|
||||
|
||||
// @has foo/mod3/index.html
|
||||
pub mod mod3 {
|
||||
// @has - '//code' 'pub use tag::Unstable;'
|
||||
// @!has - '//span' 'Deprecated'
|
||||
// @!has - '//span' 'sync'
|
||||
pub use tag::Unstable;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue