Add test for reexported macros 2.0 rendering
This commit is contained in:
parent
d1ad40eac4
commit
c70250dfbd
2 changed files with 14 additions and 0 deletions
6
src/test/rustdoc/auxiliary/macro-2-reexport.rs
Normal file
6
src/test/rustdoc/auxiliary/macro-2-reexport.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
#![crate_name = "macro_2_reexport"]
|
||||
#![feature(decl_macro)]
|
||||
|
||||
pub macro addr_of($place:expr) {
|
||||
&raw const $place
|
||||
}
|
8
src/test/rustdoc/macro-2-reexport.rs
Normal file
8
src/test/rustdoc/macro-2-reexport.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// aux-build: macro-2-reexport.rs
|
||||
|
||||
#![crate_name = "foo"]
|
||||
|
||||
extern crate macro_2_reexport;
|
||||
|
||||
// @has 'foo/macro.addr_of.html' '//*[@class="docblock type-decl"]' 'macro addr_of($place : expr) {'
|
||||
pub use macro_2_reexport::addr_of;
|
Loading…
Add table
Add a link
Reference in a new issue