about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2019-09-17 14:10:47 -0700
committerGitHub <noreply@github.com>2019-09-17 14:10:47 -0700
commitec905cf9e5b8fea647ba49bf781366addef8f7e2 (patch)
tree7121aea7bb73779b8fe45df522ca44e58d4a67ab /src/librustc_errors
parent20d43d03dd27568f609d621ce44673393e838892 (diff)
parent7f0637da5144c7435e88ea3805021882f077d50c (diff)
downloadrust-ec905cf9e5b8fea647ba49bf781366addef8f7e2.tar.gz
rust-ec905cf9e5b8fea647ba49bf781366addef8f7e2.zip
Rollup merge of #64394 - nnethercote:shrink-SubregionOrigin, r=Mark-Simulacrum
Shrink `SubregionOrigin`.

It's currently 120 bytes on x86-64, due to one oversized variant
(`Subtype`). This commit boxes `Subtype`'s contents, reducing the size
of `SubregionOrigin` to 32 bytes.

The change speeds things up by avoiding lots of `memcpy` calls, mostly
relating to `RegionConstraintData::constraints`, which is a `BTreeMap`
with `SubregionOrigin` values.
Diffstat (limited to 'src/librustc_errors')
0 files changed, 0 insertions, 0 deletions