Skip to content

Commit da1c1c3

Browse files
committed
Adjust test for slightly changed inlining behavior
1 parent 16a4ad7 commit da1c1c3

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

tests/rustdoc-js-std/path-maxeditdistance.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const EXPECTED = [
1717
{ 'path': 'std::vec::IntoIter', 'name': 'into_iter' },
1818
{ 'path': 'std::vec::ExtractIf', 'name': 'into_iter' },
1919
{ 'path': 'std::vec::Splice', 'name': 'into_iter' },
20-
{ 'path': 'std::collections::vec_deque::VecDeque', 'name': 'iter' },
21-
{ 'path': 'std::collections::vec_deque::VecDeque', 'name': 'iter_mut' },
22-
{ 'path': 'std::collections::vec_deque::VecDeque', 'name': 'from_iter' },
23-
{ 'path': 'std::collections::vec_deque::VecDeque', 'name': 'into_iter' },
20+
{ 'path': 'std::collections::VecDeque', 'name': 'iter' },
21+
{ 'path': 'std::collections::VecDeque', 'name': 'iter_mut' },
22+
{ 'path': 'std::collections::VecDeque', 'name': 'from_iter' },
23+
{ 'path': 'std::collections::VecDeque', 'name': 'into_iter' },
2424
],
2525
},
2626
{

tests/rustdoc-js-std/path-ordering.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ const EXPECTED = [
33
query: 'hashset::insert',
44
others: [
55
// ensure hashset::insert comes first
6-
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'insert' },
7-
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert' },
8-
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert_with' },
6+
{ 'path': 'std::collections::HashSet', 'name': 'insert' },
7+
{ 'path': 'std::collections::HashSet', 'name': 'get_or_insert' },
8+
{ 'path': 'std::collections::HashSet', 'name': 'get_or_insert_with' },
99
],
1010
},
1111
{
1212
query: 'hash::insert',
1313
others: [
1414
// ensure hashset/hashmap::insert come first
15-
{ 'path': 'std::collections::hash_map::HashMap', 'name': 'insert' },
16-
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'insert' },
15+
{ 'path': 'std::collections::HashMap', 'name': 'insert' },
16+
{ 'path': 'std::collections::HashSet', 'name': 'insert' },
1717
],
1818
},
1919
];

tests/rustdoc-js-std/simd-type-signatures.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -11,59 +11,59 @@ const EXPECTED = [
1111
'query': 'simd<i16>, simd<i16> -> simd<i16>',
1212
'others': [
1313
{
14-
'path': 'std::simd::prelude::Simd',
14+
'path': 'std::simd::Simd',
1515
'name': 'simd_max',
16-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_max'
16+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_max'
1717
},
1818
{
19-
'path': 'std::simd::prelude::Simd',
19+
'path': 'std::simd::Simd',
2020
'name': 'simd_min',
21-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_min'
21+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_min'
2222
},
2323
{
24-
'path': 'std::simd::prelude::Simd',
24+
'path': 'std::simd::Simd',
2525
'name': 'saturating_add',
26-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+N%3E/method.saturating_add'
26+
'href': '../std/simd/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+N%3E/method.saturating_add'
2727
},
2828
{
29-
'path': 'std::simd::prelude::Simd',
29+
'path': 'std::simd::Simd',
3030
'name': 'saturating_sub',
31-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+N%3E/method.saturating_sub'
31+
'href': '../std/simd/struct.Simd.html#impl-SimdInt-for-Simd%3Ci16,+N%3E/method.saturating_sub'
3232
},
3333
{
34-
'path': 'std::simd::prelude::Simd',
34+
'path': 'std::simd::Simd',
3535
'name': 'simd_clamp',
36-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_clamp'
36+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci16,+N%3E/method.simd_clamp'
3737
},
3838
],
3939
},
4040
{
4141
'query': 'simd<i8>, simd<i8> -> simd<i8>',
4242
'others': [
4343
{
44-
'path': 'std::simd::prelude::Simd',
44+
'path': 'std::simd::Simd',
4545
'name': 'simd_max',
46-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_max'
46+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_max'
4747
},
4848
{
49-
'path': 'std::simd::prelude::Simd',
49+
'path': 'std::simd::Simd',
5050
'name': 'simd_min',
51-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_min'
51+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_min'
5252
},
5353
{
54-
'path': 'std::simd::prelude::Simd',
54+
'path': 'std::simd::Simd',
5555
'name': 'saturating_add',
56-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+N%3E/method.saturating_add'
56+
'href': '../std/simd/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+N%3E/method.saturating_add'
5757
},
5858
{
59-
'path': 'std::simd::prelude::Simd',
59+
'path': 'std::simd::Simd',
6060
'name': 'saturating_sub',
61-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+N%3E/method.saturating_sub'
61+
'href': '../std/simd/struct.Simd.html#impl-SimdInt-for-Simd%3Ci8,+N%3E/method.saturating_sub'
6262
},
6363
{
64-
'path': 'std::simd::prelude::Simd',
64+
'path': 'std::simd::Simd',
6565
'name': 'simd_clamp',
66-
'href': '../std/simd/prelude/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_clamp'
66+
'href': '../std/simd/struct.Simd.html#impl-SimdOrd-for-Simd%3Ci8,+N%3E/method.simd_clamp'
6767
},
6868
],
6969
},

tests/rustdoc/intra-doc/pub-use.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate inner;
77
/// [mod@std::env] [g]
88
//@ has outer/index.html
99
//@ has - '//a[@href="{{channel}}/std/env/index.html"]' "std::env"
10-
//@ has - '//a[@href="fn.f.html"]' "g"
10+
//@ has - '//a[@href="fn.g.html"]' "g"
1111
pub use f as g;
1212

1313
// Make sure the documentation is actually correct by documenting an inlined re-export

0 commit comments

Comments
 (0)