rust/compiler/rustc_ty_utils
Tomasz Miąsko 56219870ee 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
2021-07-01 13:31:57 +02:00
..
src Include terminators in instance size estimate 2021-07-01 13:31:57 +02:00
Cargo.toml Move rustc_ty -> rustc_ty_utils 2020-11-19 21:57:29 +01:00