Rollup merge of #59711 - GuillaumeGomez:substring-test, r=QuietMisdreavus
Add back the substring test Fixes #58331. r? @QuietMisdreavus
This commit is contained in:
commit
d77b7d9dc3
2 changed files with 29 additions and 0 deletions
8
src/test/rustdoc-js/substring.js
Normal file
8
src/test/rustdoc-js/substring.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const QUERY = 'waker_from';
|
||||
|
||||
const EXPECTED = {
|
||||
'others': [
|
||||
{ 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' },
|
||||
{ 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' },
|
||||
],
|
||||
};
|
||||
21
src/test/rustdoc-js/substring.rs
Normal file
21
src/test/rustdoc-js/substring.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
pub struct SuperWaker;
|
||||
|
||||
impl SuperWaker {
|
||||
pub fn local_waker_from_nonlocal() {}
|
||||
pub fn local_waker_frm_nonlocal() {}
|
||||
pub fn some_method() {}
|
||||
pub fn some_other_method() {}
|
||||
pub fn waker_non_local() {}
|
||||
pub fn from_non_local() {}
|
||||
}
|
||||
|
||||
pub struct SuperWakerTask;
|
||||
|
||||
impl SuperWakerTask {
|
||||
pub fn local_waker_from_nonlocal() {}
|
||||
pub fn local_waker_frm_nonlocal() {}
|
||||
pub fn some_method() {}
|
||||
pub fn some_other_method() {}
|
||||
pub fn waker_non_local() {}
|
||||
pub fn from_non_local() {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue