diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-02-21 16:29:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-21 16:29:52 +0100 |
| commit | fe1293f8a95d7a79ce2ef95bdc97241e92ffe5e5 (patch) | |
| tree | 3158f7f3d3184760a41f03c607fac5cce56fef07 /src/test/rustdoc | |
| parent | 27c6ff5c7ca6f23480f5676f94d06497cdab4b7a (diff) | |
| parent | 5fdc10c68b3b5a42b17555be18baf5d7d60d55e6 (diff) | |
| download | rust-fe1293f8a95d7a79ce2ef95bdc97241e92ffe5e5.tar.gz rust-fe1293f8a95d7a79ce2ef95bdc97241e92ffe5e5.zip | |
Rollup merge of #48335 - Manishearth:shortcut-links, r=QuietMisdreavus
Implement implied shortcut links for intra-rustdoc-links cc https://github.com/rust-lang/rust/issues/43466 Needs https://github.com/google/pulldown-cmark/pull/126 r? @QuietMisdreavus
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/intra-links.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-links.rs b/src/test/rustdoc/intra-links.rs index 4726323e11c..c822d0f8b21 100644 --- a/src/test/rustdoc/intra-links.rs +++ b/src/test/rustdoc/intra-links.rs @@ -77,3 +77,15 @@ pub trait SoAmbiguous {} #[allow(bad_style)] pub fn SoAmbiguous() {} + + +// @has - '//a/@href' '../intra_links/struct.ThisType.html' +// @has - '//a/@href' '../intra_links/struct.ThisType.html#method.this_method' +// @has - '//a/@href' '../intra_links/enum.ThisEnum.html' +// @has - '//a/@href' '../intra_links/enum.ThisEnum.html#ThisVariant.v' +/// Shortcut links for: +/// * [`ThisType`] +/// * [`ThisType::this_method`] +/// * [ThisEnum] +/// * [ThisEnum::ThisVariant] +pub struct SomeOtherType; |
