mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use Symbol in Name
This commit is contained in:
parent
843806b79f
commit
3fe815b0f3
75 changed files with 750 additions and 755 deletions
|
@ -150,7 +150,7 @@ fn try_lookup_macro_def_in_macro_use(
|
|||
|
||||
for mod_def in krate.root_module().declarations(sema.db) {
|
||||
if let ModuleDef::Macro(mac) = mod_def {
|
||||
if mac.name(sema.db).as_str() == Some(token.text()) {
|
||||
if mac.name(sema.db).as_str() == token.text() {
|
||||
if let Some(nav) = mac.try_to_nav(sema.db) {
|
||||
return Some(nav.call_site);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue