diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-06-29 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-07-01 13:31:57 +0200 |
| commit | 56219870ee3478c337f8faf104bb7cb1929000dc (patch) | |
| tree | 81c564eb7c4b79e0018df12c77e1aa02d5722cf5 /compiler/rustc_query_impl/src | |
| parent | f8ac8fdacf66b351c6479b0c8313e3e57e571ba4 (diff) | |
| download | rust-56219870ee3478c337f8faf104bb7cb1929000dc.tar.gz rust-56219870ee3478c337f8faf104bb7cb1929000dc.zip | |
Include terminators in instance size estimate
For example, drop glue generated for struct below, doesn't have any
statements, only terminators. Previously it received an estimate of 0,
the new estimate is 13 (6+5 drop terminators, +1 resume, +1 return).
struct S {
a: String,
b: String,
c: String,
d: String,
e: String,
f: String,
}
Originally reported in https://github.com/rust-lang/rust/issues/69382#issue-569392141
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions
