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:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2021-09-24 11:40:14 -0700
committerGitHub <noreply@github.com>2021-09-24 11:40:14 -0700
commit7ade6ed48e3112cdea227d712cd612b082943093 (patch)
treeacbbcdfad216e753967aeb029929e9695a52e173 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent80d9886e4cdfc5651cdf487878598d0d453e7f5d (diff)
parentdd918048a56577dcd7a396065f645a921c3b8e79 (diff)
downloadrust-7ade6ed48e3112cdea227d712cd612b082943093.tar.gz
rust-7ade6ed48e3112cdea227d712cd612b082943093.zip
Rollup merge of #89208 - wesleywiser:rfc_2229_droporder, r=nikomatsakis
[rfc 2229] 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 rust-lang/project-rfc-2229#42

r? `@nikomatsakis`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions