rustdoc-search: fix accidental shared, mutable map
This commit is contained in:
parent
c76c2e71f0
commit
a66972d551
3 changed files with 49 additions and 30 deletions
22
tests/rustdoc-js/generics2.js
Normal file
22
tests/rustdoc-js/generics2.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
// exact-check
|
||||
|
||||
const EXPECTED = [
|
||||
{
|
||||
'query': 'outside<U>, outside<V> -> outside<W>',
|
||||
'others': [],
|
||||
},
|
||||
{
|
||||
'query': 'outside<V>, outside<U> -> outside<W>',
|
||||
'others': [],
|
||||
},
|
||||
{
|
||||
'query': 'outside<U>, outside<U> -> outside<W>',
|
||||
'others': [],
|
||||
},
|
||||
{
|
||||
'query': 'outside<U>, outside<U> -> outside<U>',
|
||||
'others': [
|
||||
{"path": "generics2", "name": "should_match_3"}
|
||||
],
|
||||
},
|
||||
];
|
13
tests/rustdoc-js/generics2.rs
Normal file
13
tests/rustdoc-js/generics2.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
pub struct Outside<T>(T);
|
||||
|
||||
pub fn no_match<U, V>(a: Outside<U>, b: Outside<V>) -> (Outside<U>, Outside<V>) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
pub fn no_match_2<U, V>(a: Outside<V>, b: Outside<U>) -> (Outside<U>, Outside<V>) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
pub fn should_match_3<U>(a: Outside<U>, b: Outside<U>) -> (Outside<U>, Outside<U>) {
|
||||
unimplemented!();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue