about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-11 13:16:31 +0900
committerGitHub <noreply@github.com>2022-05-11 13:16:31 +0900
commited9faeeddaa17cf46255ddc1875958426407daa9 (patch)
treeab6963a67f89e3ec07c8659a4784984a1ccff246 /src/test/rustdoc-js-std
parent81c0a2d96c42bd3b21111ad7a99026949f4e9a4c (diff)
parent9dc5ac8c4bbf56bd1cae1bcb4f8af245b4b2d67e (diff)
downloadrust-ed9faeeddaa17cf46255ddc1875958426407daa9.tar.gz
rust-ed9faeeddaa17cf46255ddc1875958426407daa9.zip
Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha
rustdoc: correct path to type alias methods

Fixes #83991
Diffstat (limited to 'src/test/rustdoc-js-std')
-rw-r--r--src/test/rustdoc-js-std/asrawfd.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc-js-std/asrawfd.js b/src/test/rustdoc-js-std/asrawfd.js
new file mode 100644
index 00000000000..fd228a59099
--- /dev/null
+++ b/src/test/rustdoc-js-std/asrawfd.js
@@ -0,0 +1,14 @@
+// ignore-order
+
+const QUERY = 'RawFd::as_raw_fd';
+
+const EXPECTED = {
+    'others': [
+        // Reproduction test for https://github.com/rust-lang/rust/issues/78724
+        // Validate that type alias methods get the correct path.
+        { 'path': 'std::os::unix::io::AsRawFd', 'name': 'as_raw_fd' },
+        { 'path': 'std::os::wasi::io::AsRawFd', 'name': 'as_raw_fd' },
+        { 'path': 'std::os::linux::process::PidFd', 'name': 'as_raw_fd' },
+        { 'path': 'std::os::unix::io::RawFd', 'name': 'as_raw_fd' },
+    ],
+};