diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2019-09-17 14:10:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-17 14:10:47 -0700 |
| commit | ec905cf9e5b8fea647ba49bf781366addef8f7e2 (patch) | |
| tree | 7121aea7bb73779b8fe45df522ca44e58d4a67ab /src/librustc_errors | |
| parent | 20d43d03dd27568f609d621ce44673393e838892 (diff) | |
| parent | 7f0637da5144c7435e88ea3805021882f077d50c (diff) | |
| download | rust-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
