about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-02-09 08:47:32 -0500
committerGitHub <noreply@github.com>2017-02-09 08:47:32 -0500
commit15decb86b2b69ddd56d3571c328cd18ac31f2e30 (patch)
tree231b3dcacfc4a73d57acb89b3ea72ba9c6c60426 /src/test/run-pass/thinlto
parentb0e46f03d8f3ffe24b1bd1ae857ed86f95b1b3c2 (diff)
parentc3b64cf702552d7d7a68c8b2b4b6290b19b40f73 (diff)
downloadrust-15decb86b2b69ddd56d3571c328cd18ac31f2e30.tar.gz
rust-15decb86b2b69ddd56d3571c328cd18ac31f2e30.zip
Rollup merge of #39595 - camlorn:structured_repr, r=eddyb
Make reprs use a structured representation instead of a slice

This is needed for `-z reorder-fields`.  The old design uses a slice taken from HIR, plus a cache that lazily parses.  The new design stores it directly in the `AdtDef` as a `ReprOptions`.  We're doing this now because we need to be able to add reprs that don't necessarily exist in HIR for `-z reorder-fields`, but it needs to happen anyway.

`lookup_repr_hints` should be mostly deprecated.  I want to remove it from `layout` before closing this, unless people think that should be a separate PR.  The `[WIP]` is because of this.  The problem with closing this as-is is that the code here isn't actually testable until some parts of the compiler start using it.

r? @eddyb
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions