mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Swap query call order in file_item_tree_query
This commit is contained in:
parent
c286786888
commit
3936dc59f0
1 changed files with 1 additions and 2 deletions
|
@ -103,9 +103,8 @@ impl ItemTree {
|
|||
let _p = tracing::info_span!("file_item_tree_query", ?file_id).entered();
|
||||
static EMPTY: OnceLock<Arc<ItemTree>> = OnceLock::new();
|
||||
|
||||
let syntax = db.parse_or_expand(file_id);
|
||||
|
||||
let ctx = lower::Ctx::new(db, file_id);
|
||||
let syntax = db.parse_or_expand(file_id);
|
||||
let mut top_attrs = None;
|
||||
let mut item_tree = match_ast! {
|
||||
match syntax {
|
||||
|
|
Loading…
Reference in a new issue