about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-09-23 16:36:49 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-09-23 18:01:32 -0400
commitab8aef40b1e3a7151daebe7acea2c8b0117a8c9f (patch)
tree7a2c02d128e11f1fc9f236919221edfb005329a7 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent7a3e450df45d2e40cff0ab6a4928084d6f61e993 (diff)
downloadrust-ab8aef40b1e3a7151daebe7acea2c8b0117a8c9f.tar.gz
rust-ab8aef40b1e3a7151daebe7acea2c8b0117a8c9f.zip
Drop fully captured upvars in the same order as the regular drop code
Currently, with the new 2021 edition, if a closure captures all of the
fields of an upvar, we'll drop those fields in the order they are used
within the closure instead of the normal drop order (the definition
order of the fields in the type).

This changes that so we sort the captured fields by the definition order
which causes them to drop in that same order as well.

Fixes https://github.com/rust-lang/project-rfc-2229/issues/42
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions