Skip to content

Commit c8ce150

Browse files
committed
Swap query call order in file_item_tree_query
1 parent fa59a76 commit c8ce150

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/rust-analyzer/crates/hir-def/src/item_tree.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ impl ItemTree {
103103
let _p = tracing::info_span!("file_item_tree_query", ?file_id).entered();
104104
static EMPTY: OnceLock<Arc<ItemTree>> = OnceLock::new();
105105

106-
let syntax = db.parse_or_expand(file_id);
107-
108106
let ctx = lower::Ctx::new(db, file_id);
107+
let syntax = db.parse_or_expand(file_id);
109108
let mut top_attrs = None;
110109
let mut item_tree = match_ast! {
111110
match syntax {

0 commit comments

Comments
 (0)