summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-07-26 11:58:34 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-07-26 11:58:34 -0700
commitff3810bb0ab763a9f1160892d5c5f005034f99a0 (patch)
tree647527b42b85aa1bc88f767ac3a7a6a3f31b7d3e /src/codegen/mod.rs
parentbb62ad6fffb7a135e3b38d59cfdd72c7231035c1 (diff)
Be conservative about deriving Debug/Default with large alignment
When there is large enough alignment that we might generate padding which has more members that `RUST_DERIVE_IN_ARRAY_LIMIT`, we can break our ability to derive traits. This commit solves this issue conservatively: there are cases where we leave a derive on the table, because in order to know that we could add that derive, we would need to compute padding before we determine whether we can derive. Fixes #648
Diffstat (limited to 'src/codegen/mod.rs')
0 files changed, 0 insertions, 0 deletions