about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-15 10:00:39 +0000
committerbors <bors@rust-lang.org>2021-05-15 10:00:39 +0000
commitb439be03c9c30d173c45785a03a03cba98af5ab6 (patch)
treea52a506e28a243dea285e76fd1d595d7b4d14bea /compiler/rustc_codegen_llvm/src
parentc6dd87a6b4a62cf5d2cb6207b1dcea652ea1aa60 (diff)
parenta7e1cec621d751b1c10b00b45c5b228df1b7d46d (diff)
downloadrust-b439be03c9c30d173c45785a03a03cba98af5ab6.tar.gz
rust-b439be03c9c30d173c45785a03a03cba98af5ab6.zip
Auto merge of #84152 - sexxi-goose:insignificant_dtor, r=nikomatsakis
Insignificant destructors rfc 2229

- Adds new attribute `rustc_insignificant_dtor` to annotate the drop method.
- Adds a query to check if a type has a significant drop.
- Updates closure analysis to check for significant drops rather than just drop.

A type marked with the attribute `rustc_insignificant_dtor` is considered to not be significant. A drop is significant if it is implemented by the user or does anything that will have any observable behavior (other than freeing up memory).

https://github.com/rust-lang/project-rfc-2229/issues/35
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions