forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#119384 - matthiaskrgr:rollup-hhz9ws0, r=matth…
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#119331 (rustdoc-search: count path edits with separate edit limit) - rust-lang#119359 (Simplify Parser::ident_or_error) - rust-lang#119376 (Add regression test for rust-lang#106630) - rust-lang#119379 (Update `parse_seq` doc) - rust-lang#119380 (Don't suggest writing a bodyless arm if the pattern can never be a never pattern) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
24 changed files
with
249 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// exact-check | ||
const FILTER_CRATE = "std"; | ||
const EXPECTED = [ | ||
{ | ||
query: 'vec::intoiterator', | ||
others: [ | ||
// trait std::iter::IntoIterator is not the first result | ||
{ 'path': 'std::vec', 'name': 'IntoIter' }, | ||
{ 'path': 'std::vec::Vec', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::Drain', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::IntoIter', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::ExtractIf', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::Splice', 'name': 'into_iter' }, | ||
{ 'path': 'std::collections::VecDeque', 'name': 'into_iter' }, | ||
], | ||
}, | ||
{ | ||
query: 'vec::iter', | ||
others: [ | ||
// std::net::ToSocketAttrs::iter should not show up here | ||
{ 'path': 'std::vec', 'name': 'IntoIter' }, | ||
{ 'path': 'std::vec::Vec', 'name': 'from_iter' }, | ||
{ 'path': 'std::vec::Vec', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::Drain', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::IntoIter', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::ExtractIf', 'name': 'into_iter' }, | ||
{ 'path': 'std::vec::Splice', 'name': 'into_iter' }, | ||
{ 'path': 'std::collections::VecDeque', 'name': 'iter' }, | ||
{ 'path': 'std::collections::VecDeque', 'name': 'iter_mut' }, | ||
{ 'path': 'std::collections::VecDeque', 'name': 'from_iter' }, | ||
{ 'path': 'std::collections::VecDeque', 'name': 'into_iter' }, | ||
], | ||
}, | ||
{ | ||
query: 'slice::itermut', | ||
others: [ | ||
// std::collections::btree_map::itermut should not show up here | ||
{ 'path': 'std::slice', 'name': 'IterMut' }, | ||
{ 'path': 'std::slice', 'name': 'iter_mut' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
const EXPECTED = { | ||
query: 'hashset::insert', | ||
others: [ | ||
// ensure hashset::insert comes first | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'insert' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert_with' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert_owned' }, | ||
{ 'path': 'std::collections::hash_map::HashMap', 'name': 'insert' }, | ||
], | ||
}; | ||
const EXPECTED = [ | ||
{ | ||
query: 'hashset::insert', | ||
others: [ | ||
// ensure hashset::insert comes first | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'insert' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert_with' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'get_or_insert_owned' }, | ||
], | ||
}, | ||
{ | ||
query: 'hash::insert', | ||
others: [ | ||
// ensure hashset/hashmap::insert come first | ||
{ 'path': 'std::collections::hash_map::HashMap', 'name': 'insert' }, | ||
{ 'path': 'std::collections::hash_set::HashSet', 'name': 'insert' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
const EXPECTED = { | ||
'query': 'ig::pc', | ||
'others': [ | ||
{ 'path': 'module_substring::Sig', 'name': 'pc' }, | ||
{ 'path': 'module_substring::Si', 'name': 'pc' }, | ||
], | ||
}; | ||
const EXPECTED = [ | ||
{ | ||
'query': 'ig::pc', | ||
'others': [ | ||
{ 'path': 'module_substring::Sig', 'name': 'pc' }, | ||
], | ||
}, | ||
{ | ||
'query': 'si::pc', | ||
'others': [ | ||
{ 'path': 'module_substring::Si', 'name': 'pc' }, | ||
{ 'path': 'module_substring::Sig', 'name': 'pc' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// exact-check | ||
|
||
const EXPECTED = [ | ||
{ | ||
'query': 'xxxxxxxxxxx::hocuspocusprestidigitation', | ||
// do not match abracadabra::hocuspocusprestidigitation | ||
'others': [], | ||
}, | ||
{ | ||
// exact match | ||
'query': 'abracadabra::hocuspocusprestidigitation', | ||
'others': [ | ||
{ 'path': 'abracadabra', 'name': 'HocusPocusPrestidigitation' }, | ||
], | ||
}, | ||
{ | ||
// swap br/rb; that's edit distance 2, where maxPathEditDistance = 3 (11 / 3) | ||
'query': 'arbacadarba::hocuspocusprestidigitation', | ||
'others': [ | ||
{ 'path': 'abracadabra', 'name': 'HocusPocusPrestidigitation' }, | ||
], | ||
}, | ||
{ | ||
// truncate 5 chars, where maxEditDistance = 7 (21 / 3) | ||
'query': 'abracadarba::hocusprestidigitation', | ||
'others': [ | ||
{ 'path': 'abracadabra', 'name': 'HocusPocusPrestidigitation' }, | ||
], | ||
}, | ||
{ | ||
// truncate 9 chars, where maxEditDistance = 5 (17 / 3) | ||
'query': 'abracadarba::hprestidigitation', | ||
'others': [], | ||
}, | ||
]; |
Oops, something went wrong.