about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-05-07 21:46:06 +0200
committerGitHub <noreply@github.com>2020-05-07 21:46:06 +0200
commit5e9b3720e5c49656b78a047922bbc34fe74a67b3 (patch)
treeef2d032fd29a4102f02e5c9e4dc841e191b38b74 /src/test/debuginfo/enum-thinlto.rs
parenta08c47310c7d49cbdc5d7afb38408ba519967ecd (diff)
parentb04599ff8405d476a05b83839c67e9aea3c640cb (diff)
downloadrust-5e9b3720e5c49656b78a047922bbc34fe74a67b3.tar.gz
rust-5e9b3720e5c49656b78a047922bbc34fe74a67b3.zip
Rollup merge of #70733 - yoshuawuyts:arc-increment-refcount, r=Mark-Simulacrum
Add Arc::{incr,decr}_strong_count

This adds two `unsafe` methods to `Arc`: `incr_strong_count` and `decr_strong_count`. A suggestion to add methods to change the strong count in `Arc` came up in during review in https://github.com/rust-lang/rust/pull/68700#discussion_r396169064, and from asking a few people this seemed like generally useful to have.

References:
- [Motivation from #68700](https://github.com/rust-lang/rust/pull/68700#discussion_r396169064)
- [Real world example in an executor](https://docs.rs/extreme/666.666.666666/src/extreme/lib.rs.html#13)
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions