about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-25 07:23:06 -0700
committerbors <bors@rust-lang.org>2013-06-25 07:23:06 -0700
commitd161e630d8378e9705987e0b746d8dbf0da48842 (patch)
tree9ca2f6508e4d6020ec70cbecd809a292d6cb5b1e /src/libstd/rt/stack.rs
parent7aee5da08db11dc597907bf228c2e716a408fdab (diff)
parent721164d5ec0c8b617bd72df36830fe1861e6362b (diff)
downloadrust-d161e630d8378e9705987e0b746d8dbf0da48842.tar.gz
rust-d161e630d8378e9705987e0b746d8dbf0da48842.zip
auto merge of #7317 : Aatch/rust/no-drop-flag, r=thestinger
This adds a `#[no_drop_flag]` attribute. This attribute tells the compiler to omit the drop flag from the struct, if it has a destructor. When the destructor is run, instead of setting the drop flag, it instead zeroes-out the struct. This means the destructor can run multiple times and therefore it is up to the developer to use it safely.

The primary usage case for this is smart-pointer types like `Rc<T>` as the extra flag caused the struct to be 1 word larger because of alignment.

This closes #7271 and #7138
Diffstat (limited to 'src/libstd/rt/stack.rs')
0 files changed, 0 insertions, 0 deletions