diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-07-03 15:11:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-07-07 11:30:08 +0200 |
| commit | c70250dfbdce688654e08cdb7a83c519f623ebda (patch) | |
| tree | 9fe5ed5e3cfdc3055f87459bf5f54957bc2455ce /src/test/rustdoc | |
| parent | d1ad40eac4648a4bc2673f33d206c9eec8b4ae9f (diff) | |
| download | rust-c70250dfbdce688654e08cdb7a83c519f623ebda.tar.gz rust-c70250dfbdce688654e08cdb7a83c519f623ebda.zip | |
Add test for reexported macros 2.0 rendering
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/auxiliary/macro-2-reexport.rs | 6 | ||||
| -rw-r--r-- | src/test/rustdoc/macro-2-reexport.rs | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/macro-2-reexport.rs b/src/test/rustdoc/auxiliary/macro-2-reexport.rs new file mode 100644 index 00000000000..6de018d1360 --- /dev/null +++ b/src/test/rustdoc/auxiliary/macro-2-reexport.rs @@ -0,0 +1,6 @@ +#![crate_name = "macro_2_reexport"] +#![feature(decl_macro)] + +pub macro addr_of($place:expr) { + &raw const $place +} diff --git a/src/test/rustdoc/macro-2-reexport.rs b/src/test/rustdoc/macro-2-reexport.rs new file mode 100644 index 00000000000..f1ac8fa963e --- /dev/null +++ b/src/test/rustdoc/macro-2-reexport.rs @@ -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; |
