about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-29 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-07-01 13:31:57 +0200
commit56219870ee3478c337f8faf104bb7cb1929000dc (patch)
tree81c564eb7c4b79e0018df12c77e1aa02d5722cf5 /compiler/rustc_query_impl/src
parentf8ac8fdacf66b351c6479b0c8313e3e57e571ba4 (diff)
downloadrust-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