]> git.lizzy.rs Git - rust.git/commit
Merge #7359
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 20 Jan 2021 16:09:22 +0000 (16:09 +0000)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 16:09:22 +0000 (16:09 +0000)
commite62533c3ec74358d3488e8e4b7967c78459b238f
treecd1fe4ad8f6a19b44678e1389c0c7553a6d11036
parent9d10aa09726f38d184d499c0a04f8ba4bc1c2bba
parentc5ed2284b5733dcaf8b57b1771c441afc39fa5e7
Merge #7359

7359: ItemTree: store a mapping from blocks to inner items r=jonas-schievink a=jonas-schievink

To do name resolution within block expressions, we need to know which inner items are located inside each block expression. This adds such a mapping to `ItemTree`, replacing the previous one, which was seemingly unused other than to access all the inner items.

This also assigns `AstId`s to block expressions, which is needed to store the mapping in salsa.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>