rust-analyzer/crates/hir/src
bors[bot] d0a4ba294c
Merge #8997
8997: internal: stop expanding UseTrees during ItemTree lowering r=jonas-schievink a=jonas-schievink

Closes https://github.com/rust-analyzer/rust-analyzer/issues/8908

Messy diff, but `ItemTree` lowering got simpler, since we now have a strict 1-to-1 mapping between `ast::Item` and `ModItem`.

The most messy part is mapping a single `UseTree` back to its `ast::UseTree` counterpart for diagnostics, but I think the ad-hoc source map built during lowering does the job.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-05-27 11:56:26 +00:00
..
semantics Unleash macro 2.0 in hightlight and more 2021-03-27 14:42:49 +08:00
attrs.rs Don't store call-site text offsets in hygiene info 2021-05-06 19:59:54 +02:00
db.rs Add more docs 2021-05-22 16:53:47 +03:00
diagnostics.rs internal: move diagnostics to hir 2021-05-25 17:49:59 +03:00
display.rs internal: intern TypeBounds 2021-05-24 15:13:23 +02:00
from_id.rs Remove useless code_model indirection 2021-03-08 22:08:30 +03:00
has_source.rs Return Either from MacroDefId::ast_id 2021-03-19 19:56:13 +01:00
lib.rs Stop expanding UseTrees during ItemTree lowering 2021-05-26 01:01:58 +02:00
semantics.rs internal: rename hypothetical -> speculative 2021-05-24 22:21:25 +03:00
source_analyzer.rs simplify 2021-05-26 21:09:27 +02:00