about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-27 10:07:41 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-27 10:07:41 -0700
commite42521aa58be928dd62b5450c443368d29ab6a65 (patch)
tree1324a267ef6c9c47d1abd33c4540aa1103d11767 /src/test/codegen/stack-alloc-string-slice.rs
parent0e5052c396f6692406c58a21bf75db0ec5344c4b (diff)
parentb68ca84ef162943286c315126b52e1a6c3f49b3a (diff)
downloadrust-e42521aa58be928dd62b5450c443368d29ab6a65.tar.gz
rust-e42521aa58be928dd62b5450c443368d29ab6a65.zip
rollup merge of #23535: pnkfelix/fsk-filling-drop
Replace zeroing-on-drop with filling-on-drop.

This is meant to set the stage for removing *all* zeroing and filling (on drop) in the future.

Note that the code is meant to be entirely abstract with respect to the particular values used for the drop flags: the final commit demonstrates how to go from zeroing-on-drop to filling-on-drop by changing the value of three constants (in two files).

See further discussion on the internals thread:
  http://internals.rust-lang.org/t/attention-hackers-filling-drop/1715/11

[breaking-change] especially for structs / enums using `#[unsafe_no_drop_flag]`.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions