Correctly handle paths from foreign items

This commit is contained in:
Guillaume Gomez 2023-09-02 23:04:37 +02:00
parent 36fa557a5e
commit e161fa1a6b
3 changed files with 65 additions and 11 deletions

View file

@ -22,4 +22,22 @@ const EXPECTED = [
{ 'path': 'full_path_function::b::Sac', 'name': 'bar2' },
],
},
{
'query': 'string::string -> u32',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'string' },
],
},
{
'query': 'alloc::string::string -> u32',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'string' },
],
},
{
'query': 'alloc::string -> u32',
'others': [
{ 'path': 'full_path_function::b::Sac', 'name': 'string' },
],
},
];