Skip to content

Commit 8cf856e

Browse files
authored
Merge pull request rust-lang#18392 from Veykril/veykril/push-wktpkuklnzot
Swap query call order in `file_item_tree_query`
2 parents a7ea9c0 + c8ce150 commit 8cf856e

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)