Adjust ranking so that duplicates count against rank
This commit is contained in:
parent
12dc24f460
commit
9900ea48b5
6 changed files with 52 additions and 30 deletions
|
@ -20,11 +20,6 @@ const EXPECTED = [
|
|||
'name': 'simd_min',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_min'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'simd_clamp',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_clamp'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'saturating_add',
|
||||
|
@ -35,6 +30,11 @@ const EXPECTED = [
|
|||
'name': 'saturating_sub',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+N%3E/method.saturating_sub'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'simd_clamp',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_clamp'
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -50,11 +50,6 @@ const EXPECTED = [
|
|||
'name': 'simd_min',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_min'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'simd_clamp',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_clamp'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'saturating_add',
|
||||
|
@ -65,6 +60,11 @@ const EXPECTED = [
|
|||
'name': 'saturating_sub',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+N%3E/method.saturating_sub'
|
||||
},
|
||||
{
|
||||
'path': 'std::simd::prelude::Simd',
|
||||
'name': 'simd_clamp',
|
||||
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_clamp'
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
|
13
tests/rustdoc-js-std/transmute-fail.js
Normal file
13
tests/rustdoc-js-std/transmute-fail.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// should-fail
|
||||
const EXPECTED = [
|
||||
{
|
||||
// Keep this test case identical to `transmute`, except the
|
||||
// should-fail tag and the search query below:
|
||||
'query': 'generic:T -> generic:T',
|
||||
'others': [
|
||||
{ 'path': 'std::intrinsics::simd', 'name': 'simd_as' },
|
||||
{ 'path': 'std::intrinsics::simd', 'name': 'simd_cast' },
|
||||
{ 'path': 'std::intrinsics', 'name': 'transmute' },
|
||||
],
|
||||
},
|
||||
];
|
12
tests/rustdoc-js-std/transmute.js
Normal file
12
tests/rustdoc-js-std/transmute.js
Normal file
|
@ -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' },
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue