diff options
| author | Michael Howell <michael@notriddle.com> | 2024-10-31 13:09:37 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-10-31 13:12:14 -0700 |
| commit | 9900ea48b566656fb12b5fcbd0a1b20aaa96e5ca (patch) | |
| tree | cf65459fa0c9ca5b0f79a87f5b372d8fa427f592 /tests/rustdoc-js-std/transmute.js | |
| parent | 12dc24f46007f82b93ed85614347a42d47580afa (diff) | |
| download | rust-9900ea48b566656fb12b5fcbd0a1b20aaa96e5ca.tar.gz rust-9900ea48b566656fb12b5fcbd0a1b20aaa96e5ca.zip | |
Adjust ranking so that duplicates count against rank
Diffstat (limited to 'tests/rustdoc-js-std/transmute.js')
| -rw-r--r-- | tests/rustdoc-js-std/transmute.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/transmute.js b/tests/rustdoc-js-std/transmute.js new file mode 100644 index 00000000000..0e52e21e0de --- /dev/null +++ b/tests/rustdoc-js-std/transmute.js @@ -0,0 +1,12 @@ +const EXPECTED = [ + { + // Keep this test case identical to `transmute-fail`, except the + // should-fail tag and the search query below: + 'query': 'generic:T -> generic:U', + 'others': [ + { 'path': 'std::intrinsics::simd', 'name': 'simd_as' }, + { 'path': 'std::intrinsics::simd', 'name': 'simd_cast' }, + { 'path': 'std::intrinsics', 'name': 'transmute' }, + ], + }, +]; |
