From: Jake Heinz Date: Mon, 29 Nov 2021 01:11:31 +0000 (+0000) Subject: collect blocks from unnamed consts too X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8fa1d9bb479c3af2b300b4f19656b7222495f2c7;p=rust.git collect blocks from unnamed consts too --- diff --git a/crates/ide_db/src/symbol_index.rs b/crates/ide_db/src/symbol_index.rs index c4e02ba1da2..3281d4b8102 100644 --- a/crates/ide_db/src/symbol_index.rs +++ b/crates/ide_db/src/symbol_index.rs @@ -579,6 +579,10 @@ fn decl_module(db: &dyn DefDatabase, module_id: ModuleId) -> Option }); symbols.extend(symbols_iter); + + for const_id in scope.unnamed_consts() { + bodies_to_traverse.push(const_id.into()) + } }; let mut bodies_to_traverse = Vec::new();