Rollup merge of #59711 - GuillaumeGomez:substring-test, r=QuietMisdreavus

Add back the substring test

Fixes #58331.

r? @QuietMisdreavus
This commit is contained in:
Mazdak Farrokhzad 2019-04-12 12:17:49 +02:00 committed by GitHub
commit d77b7d9dc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View 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' },
],
};

View 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() {}
}