about summary refs log tree commit diff
path: root/src/test/rustdoc-js-std/asrawfd.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-05-11 06:29:04 +0000
committerbors <bors@rust-lang.org>2022-05-11 06:29:04 +0000
commitee6eaabdd402583ab759eb271ac69d26e06842d7 (patch)
tree9794dde2f6169492971376420fe5e6ce0712c0f4 /src/test/rustdoc-js-std/asrawfd.js
parentb862b438dbffb959ef4e9643148ecd05b8da4d8a (diff)
parent514b585757126a09785765bc5177299cd5bb5e2d (diff)
downloadrust-ee6eaabdd402583ab759eb271ac69d26e06842d7.tar.gz
rust-ee6eaabdd402583ab759eb271ac69d26e06842d7.zip
Auto merge of #96931 - JohnTitor:rollup-3um8o4j, r=JohnTitor
Rollup of 7 pull requests

Successful merges:

 - #96543 (Remove hacks in `make_token_stream`.)
 - #96887 (rustdoc: correct path to type alias methods)
 - #96896 (Add regression test for #68408)
 - #96900 (Fix js error)
 - #96903 (Use lifetimes on type-alias-impl-trait used in function signatures to infer output type lifetimes)
 - #96916 (simplify length count)
 - #96925 (Fix issue #95151)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc-js-std/asrawfd.js')
-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' },
+    ],
+};