mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
e473783d90
Rc/Arc: don't leak the allocation if drop panics Currently, when the last `Rc<T>` or `Arc<T>` is dropped and the destructor of `T` panics, the allocation will be leaked. This leak is unnecessary since the data cannot be (safely) accessed again and `Box` already deallocates in this case, so let's do the same for `Rc` and `Arc`, too. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |