From bb4ecc3fd8d0d8c0fa490feba294e300185862e6 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 9 May 2022 17:50:39 -0700 Subject: rustdoc: correct path to type alias methods --- src/test/rustdoc-js-std/asrawfd.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/rustdoc-js-std/asrawfd.js (limited to 'src/test/rustdoc-js-std') diff --git a/src/test/rustdoc-js-std/asrawfd.js b/src/test/rustdoc-js-std/asrawfd.js new file mode 100644 index 00000000000..37168fc4937 --- /dev/null +++ b/src/test/rustdoc-js-std/asrawfd.js @@ -0,0 +1,14 @@ +// exact-match + +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' }, + ], +}; -- cgit 1.4.1-3-g733a5 From 9dc5ac8c4bbf56bd1cae1bcb4f8af245b4b2d67e Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 10 May 2022 16:42:48 -0700 Subject: Ignore order This isn't an ordering test really, anyway... --- src/test/rustdoc-js-std/asrawfd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/rustdoc-js-std') diff --git a/src/test/rustdoc-js-std/asrawfd.js b/src/test/rustdoc-js-std/asrawfd.js index 37168fc4937..fd228a59099 100644 --- a/src/test/rustdoc-js-std/asrawfd.js +++ b/src/test/rustdoc-js-std/asrawfd.js @@ -1,4 +1,4 @@ -// exact-match +// ignore-order const QUERY = 'RawFd::as_raw_fd'; -- cgit 1.4.1-3-g733a5