]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/inline_cross/macro-vis.rs
test for renaming re-exported macros
[rust.git] / src / test / rustdoc / inline_cross / macro-vis.rs
1 // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // aux-build:macro-vis.rs
12 // build-aux-docs
13 // ignore-cross-compile
14
15 #![feature(use_extern_macros)]
16
17 #[macro_use] extern crate qwop;
18
19 // @has macro_vis/macro.some_macro.html
20 // @has macro_vis/index.html '//a/@href' 'macro.some_macro.html'
21 pub use qwop::some_macro;
22
23 // @has macro_vis/macro.renamed_macro.html
24 // @!has - '//pre' 'some_macro'
25 // @has macro_vis/index.html '//a/@href' 'macro.renamed_macro.html'
26 #[doc(inline)]
27 pub use qwop::some_macro as renamed_macro;
28
29 // @!has macro_vis/macro.other_macro.html
30 // @!has macro_vis/index.html '//a/@href' 'macro.other_macro.html'
31 // @!has - '//code' 'pub use qwop::other_macro;'
32 #[doc(hidden)]
33 pub use qwop::other_macro;
34
35 // @has macro_vis/index.html '//code' 'pub use qwop::super_macro;'
36 // @!has macro_vis/macro.super_macro.html
37 #[doc(no_inline)]
38 pub use qwop::super_macro;
39
40 // @has macro_vis/macro.this_is_dope.html
41 // @has macro_vis/index.html '//a/@href' 'macro.this_is_dope.html'
42 /// What it says on the tin.
43 #[macro_export]
44 macro_rules! this_is_dope {
45     () => {
46         println!("yo check this out");
47     };
48 }