rust/crates/hir_def/src/body
Alexandru Macovei fb1f544e24 Use Box'es to reduce size of hir_def::expr::Expr from 128 to 72 bytes (on 64bit systems)
Rationale: only a minority of variants used almost half the size.
By keeping large members (especially in Option) behind a box
the memory cost is only payed when the large variants are needed.

This reduces the size Vec<Expr> needs to allocate.
2021-04-06 16:01:31 +03:00
..
tests Use upstream cov-mark 2021-03-08 22:19:44 +02:00
diagnostics.rs Fix missing unresolved macro diagnostic in function body 2021-03-16 00:52:58 -07:00
lower.rs Use Box'es to reduce size of hir_def::expr::Expr from 128 to 72 bytes (on 64bit systems) 2021-04-06 16:01:31 +03:00
scope.rs Fix incorrect scoping in while expressions 2021-03-21 01:28:42 +01:00
tests.rs Improve diagnostic when including nonexistent file 2021-03-17 21:56:09 +01:00