summaryrefslogtreecommitdiff
path: root/src/codegen/struct_layout.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@fb.com>2021-07-30 19:41:10 -0700
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-07-31 13:33:42 +0200
commitd1d2eb62d36c462416a606c680e6b4ba4716daab (patch)
treeeff269a021df4cacbd8d84d3d8d4a8d3e40aace7 /src/codegen/struct_layout.rs
parent546454625caa66eddc9400bc7a1048edf2a9fbc8 (diff)
Don't assume that an inner class declaration always immediately yields a
complete type. It might not if we had to avoid recursion when processing types. Detect that case and bail out. This bug was being masked by the fact that we didn't always find definitions for the recursion check and so it didn't trigger, but now that this check is more reliable we have to be careful in more places. The test case was reduced from the GCC STL allocator definition.
Diffstat (limited to 'src/codegen/struct_layout.rs')
0 files changed, 0 insertions, 0 deletions