mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Only the ROOT syntax context has None
outer_expn
This commit is contained in:
parent
eb7a4f293e
commit
8a5bb9d5ac
3 changed files with 20 additions and 13 deletions
|
@ -358,7 +358,7 @@ pub fn resolve_crate_root(db: &dyn ExpandDatabase, mut ctxt: SyntaxContextId) ->
|
|||
result_mark = Some(mark);
|
||||
}
|
||||
|
||||
result_mark.flatten().map(|call| db.lookup_intern_macro_call(call).def.krate)
|
||||
result_mark.map(|call| db.lookup_intern_macro_call(call).def.krate)
|
||||
}
|
||||
|
||||
pub use crate::name as __name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue