about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-01 18:25:19 +0000
committerbors <bors@rust-lang.org>2018-06-01 18:25:19 +0000
commitaa094a43cc041c8483b7c80fb0ec4be233dd01b7 (patch)
treedcf48d2463372afcb0b04b99bce3c365ad8dbb8d /src/libsyntax/parse
parent747e655010dd200b4faef1db0910f6097920b58e (diff)
parentc6bebf4554692c07ff96c8395f8aeddb09443708 (diff)
downloadrust-aa094a43cc041c8483b7c80fb0ec4be233dd01b7.tar.gz
rust-aa094a43cc041c8483b7c80fb0ec4be233dd01b7.zip
Auto merge of #51163 - Amanieu:hashmap_layout, r=SimonSapin
Simplify HashMap layout calculation by using Layout

`RawTable` uses a single allocation to hold both the array of hashes and the array of key/value pairs. This PR changes `RawTable` to use `Layout` when calculating the amount of memory to allocate instead of performing the calculation manually.

r? @SimonSapin
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions