]> git.lizzy.rs Git - rust.git/commit
Auto merge of #54509 - matthewjasper:better-drop-access, r=pnkfelix
authorbors <bors@rust-lang.org>
Mon, 24 Sep 2018 14:47:17 +0000 (14:47 +0000)
committerbors <bors@rust-lang.org>
Mon, 24 Sep 2018 14:47:17 +0000 (14:47 +0000)
commita072d1bca6282d1d2fbec103d12393527eb5a868
tree75e68c7a54376c61581e00d6e8c10967e1e52b07
parente5c6575801028f5e089ef2e7720aa1af9d452334
parentcfbd1a9a250ba3a82041c46605dcf16356f33727
Auto merge of #54509 - matthewjasper:better-drop-access, r=pnkfelix

[NLL] Rework checking for borrows conflicting with drops

Previously, we would split the drop access into multiple checks for each
field of a struct/tuple/closure and through `Box` dereferences. This
changes this to check if the borrow is accessed by the drop in
`places_conflict`.

We also now handle enums containing `Drop` types.

Closes #53569

r? @nikomatsakis
cc @pnkfelix