about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2020-09-09 12:11:44 -0500
committercarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2020-09-09 12:14:18 -0500
commit493c037699603388a00010d96339d84e84e361c6 (patch)
tree24afdf0c8086ce4e8f28c44c8117ce066b991e46 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentb4bdc07ff5a70175dbcdff7331c557245ddb012f (diff)
downloadrust-493c037699603388a00010d96339d84e84e361c6.tar.gz
rust-493c037699603388a00010d96339d84e84e361c6.zip
Eliminate mut reference UB in Drop impl for Rc<T>
This changes `self.ptr.as_mut()` with `get_mut_unchecked` which
does not use an intermediate reference.  Arc<T> already handled this
case properly.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions