about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2021-10-25 17:01:24 -0700
committerEric Holk <ericholk@microsoft.com>2022-01-18 14:25:24 -0800
commitf246c0b116cdbbad570c23c5745aa01f6f3f64a0 (patch)
tree632f368ab1d6bf21171f8051f1c7751c39d901bb /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentf664cfc47cdfaa83a1fd35e6e6a3fcdb692286ae (diff)
downloadrust-f246c0b116cdbbad570c23c5745aa01f6f3f64a0.tar.gz
rust-f246c0b116cdbbad570c23c5745aa01f6f3f64a0.zip
Attribute drop to parent expression of the consume point
This is needed to handle cases like `[a, b.await, c]`. `ExprUseVisitor`
considers `a` to be consumed when it is passed to the array, but the
array is not quite live yet at that point. This means we were missing
the `a` value across the await point. Attributing drops to the parent
expression means we do not consider the value consumed until the
consuming expression has finished.

Issue #57478
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions