summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-21 10:53:27 +0200
committerGitHub <noreply@github.com>2025-06-21 10:53:27 +0200
commit117641323168a606f9581903a845cf80c0df3e70 (patch)
tree432ff6ecf61d72358abbb7f0e023e3f5563685d5 /tests
parent24f797ed842bc4913f06d4c1a962c45b4b695b18 (diff)
parent8d18f3d609e9e31da8a3c2bb1613499d5ba0fe9a (diff)
downloadrust-117641323168a606f9581903a845cf80c0df3e70.tar.gz
rust-117641323168a606f9581903a845cf80c0df3e70.zip
Rollup merge of #142788 - lolbinarycat:core-AsciiChar-alias, r=tgross35
add doc(alias("AsciiChar")) to core::ascii::Char

Added it to the reexported, which is intended rustdoc behavior, but is apparently untested, so I also added a test for it.
Diffstat (limited to 'tests')
-rw-r--r--tests/rustdoc-js-std/doc-alias-use.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/doc-alias-use.js b/tests/rustdoc-js-std/doc-alias-use.js
new file mode 100644
index 00000000000..e08d94533a9
--- /dev/null
+++ b/tests/rustdoc-js-std/doc-alias-use.js
@@ -0,0 +1,12 @@
+// AsciiChar has a doc alias on its reexport and we
+// want to make sure that actually works correctly,
+// since apperently there are no other tests for this.
+
+const EXPECTED = [
+    {
+        'query': 'AsciiChar',
+        'others': [
+            { 'path': 'core::ascii', 'name': 'Char' },
+        ],
+    },
+];