Skip to content

Commit

Permalink
Swap query call order in file_item_tree_query
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Oct 23, 2024
1 parent fa59a76 commit c8ce150
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/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 c8ce150

Please sign in to comment.