Skip to content

Commit

Permalink
Merge pull request #18392 from Veykril/veykril/push-wktpkuklnzot
Browse files Browse the repository at this point in the history
Swap query call order in `file_item_tree_query`
  • Loading branch information
Veykril authored Oct 23, 2024
2 parents 49e85de + 3936dc5 commit 40492e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/hir-def/src/item_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40492e1

Please sign in to comment.