diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-12 00:12:49 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-12 11:09:24 +0200 |
| commit | fc6fb3fb8ff4589bf766e09670b1e0b005581500 (patch) | |
| tree | 3a2634cef6fb51746cfb46ebc590f8cd92a1149c /src/test/rustdoc-js/doc-alias.js | |
| parent | 3b6e4a84f92995f75cd2ab26b9b15eb508f85336 (diff) | |
| download | rust-fc6fb3fb8ff4589bf766e09670b1e0b005581500.tar.gz rust-fc6fb3fb8ff4589bf766e09670b1e0b005581500.zip | |
Allow #[doc(alias)] on impl const items
Diffstat (limited to 'src/test/rustdoc-js/doc-alias.js')
| -rw-r--r-- | src/test/rustdoc-js/doc-alias.js | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/test/rustdoc-js/doc-alias.js b/src/test/rustdoc-js/doc-alias.js index 896808d4157..ff188d51458 100644 --- a/src/test/rustdoc-js/doc-alias.js +++ b/src/test/rustdoc-js/doc-alias.js @@ -5,7 +5,7 @@ const QUERY = [ 'StructFieldItem', 'StructMethodItem', 'ImplTraitItem', - 'ImplAssociatedConstItem', + 'StructImplConstItem', 'ImplTraitFunction', 'EnumItem', 'VariantItem', @@ -64,8 +64,16 @@ const EXPECTED = [ 'others': [], }, { - // ImplAssociatedConstItem - 'others': [], + // StructImplConstItem + 'others': [ + { + 'path': 'doc_alias::Struct', + 'name': 'ImplConstItem', + 'alias': 'StructImplConstItem', + 'href': '../doc_alias/struct.Struct.html#associatedconstant.ImplConstItem', + 'is_alias': true + }, + ], }, { 'others': [ @@ -197,6 +205,10 @@ const EXPECTED = [ 'href': '../doc_alias/constant.Const.html', 'is_alias': true }, + { + 'path': 'doc_alias::Struct', + 'name': 'ImplConstItem', + }, ], }, { |
