rust/crates
bors[bot] fd84df9e1b
Merge #7541
7541: Use block_def_map in body lowering (third time's the charm) r=jonas-schievink a=jonas-schievink

After https://github.com/rust-analyzer/rust-analyzer/pull/7380 and https://github.com/rust-analyzer/rust-analyzer/pull/7506 both had to be reverted, this should have finally resolved all remaining bugs.

Most importantly, the optimization to skip `block_def_map` computation when the block contains no inner items was fixed (which fortunately was simpler than expected).

I've ran `analysis-stats` on libstd locally, which works fine, and also ran this PR locally for a short while without issues.

Note that this *still* has no (or almost no) user-facing impact, because the rest of r-a still relies on some local item support hacks.

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-02-03 14:41:13 +00:00
..
assists Enable fill_match_arms in macros 2021-01-27 22:32:40 +01:00
base_db Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
cfg
completion Forbid flyimport completions in use statements 2021-01-29 00:28:54 +02:00
flycheck Make logger-based debugging more pleasant 2021-01-28 17:07:53 +03:00
hir Prefer ValueNS when resolving hir path for PathExpressions 2021-01-29 15:59:52 +01:00
hir_def Test for name resolution with DefMap shortcut 2021-02-03 15:33:25 +01:00
hir_expand add more counts 2021-01-27 12:39:19 +03:00
hir_ty Use block_def_map in body lowering 2021-02-03 14:21:15 +01:00
ide Show alias underlying type 2021-02-02 17:47:56 +03:00
ide_db Make always-assert crate reusable 2021-01-26 22:13:42 +03:00
mbe Make sure normal dependencies always have version 2021-02-03 12:51:07 +00:00
parser Add validation for mutable const items 2021-01-24 02:17:41 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Reap proc macro server instances 2021-02-01 21:24:09 +02:00
proc_macro_srv Use non-deprecated memmap2 crate 2021-02-02 10:25:17 -05:00
proc_macro_test
profile add more counts 2021-01-27 12:39:19 +03:00
project_model Async Loading outdir and proc-macro 2021-01-29 01:04:14 +08:00
rust-analyzer Only allow one proc-macro process 2021-02-02 04:55:17 +08:00
ssr . 2021-01-20 01:56:11 +03:00
stdx Make always-assert crate reusable 2021-01-26 22:13:42 +03:00
syntax Add cargo file tidy test 2021-02-03 22:01:09 +08:00
test_utils Fixed typos in code comments 2021-01-09 15:41:29 +01:00
text_edit
toolchain
tt
vfs Document vfs private items 2021-01-12 18:01:47 +01:00
vfs-notify