diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-03-01 12:07:17 +0100 | 
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-03-01 12:07:17 +0100 | 
| commit | 885e80854063e8ad4736aeb100c42230c9ef0a70 (patch) | |
| tree | 7816a0cc5a01d5bf0b766938199b7b9039d53736 /src/test/rustdoc-ui/macro-docs.rs | |
| parent | 741553e55a6d44c4d86e6cd4bea3b82c92f04848 (diff) | |
| download | rust-885e80854063e8ad4736aeb100c42230c9ef0a70.tar.gz rust-885e80854063e8ad4736aeb100c42230c9ef0a70.zip | |
Add test to ensure it does not panic when an intra-doc link is generated from a macro
Diffstat (limited to 'src/test/rustdoc-ui/macro-docs.rs')
| -rw-r--r-- | src/test/rustdoc-ui/macro-docs.rs | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/src/test/rustdoc-ui/macro-docs.rs b/src/test/rustdoc-ui/macro-docs.rs new file mode 100644 index 00000000000..0e8472eb242 --- /dev/null +++ b/src/test/rustdoc-ui/macro-docs.rs @@ -0,0 +1,12 @@ +// check-pass + +macro_rules! m { + () => { + /// A + //~^ WARNING + #[path = "auxiliary/module_macro_doc.rs"] + pub mod mymodule; + } +} + +m!(); | 
