3583e86674
This whole thing changes it so that the JS and the UI both use rustc's own path printing to handle the impl IDs. This results in the format changing a little bit; full paths are used in spots where they aren't strictly necessary, and the path sometimes uses generics where the old system used the trait's own name, but it shouldn't matter since the orphan rules will prevent it anyway.
71 lines
2.7 KiB
JavaScript
71 lines
2.7 KiB
JavaScript
// exact-check
|
|
// ignore-order
|
|
// ignore-tidy-linelength
|
|
|
|
// This test case verifies that the href points at the correct impl
|
|
|
|
const FILTER_CRATE = "std";
|
|
|
|
const EXPECTED = [
|
|
{
|
|
'query': 'simd<i16>, simd<i16> -> simd<i16>',
|
|
'others': [
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_max',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+LANES%3E/method.simd_max'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_min',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+LANES%3E/method.simd_min'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_clamp',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+LANES%3E/method.simd_clamp'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'saturating_add',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+LANES%3E/method.saturating_add'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'saturating_sub',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+LANES%3E/method.saturating_sub'
|
|
},
|
|
],
|
|
},
|
|
{
|
|
'query': 'simd<i8>, simd<i8> -> simd<i8>',
|
|
'others': [
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_max',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+LANES%3E/method.simd_max'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_min',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+LANES%3E/method.simd_min'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'simd_clamp',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+LANES%3E/method.simd_clamp'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'saturating_add',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+LANES%3E/method.saturating_add'
|
|
},
|
|
{
|
|
'path': 'std::simd::prelude::Simd',
|
|
'name': 'saturating_sub',
|
|
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+LANES%3E/method.saturating_sub'
|
|
},
|
|
],
|
|
},
|
|
];
|