about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2021-08-19 12:35:20 +0200
committerFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2021-08-19 15:07:53 +0200
commit51d598ec285fc8aa29e2a1c64dc90394ccbd4130 (patch)
tree6cefc441d954b5a96ad720f69a6b300e5a220057 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
parent4968a8bbd19cea8713aabff9b1575ec60e208670 (diff)
downloadrust-51d598ec285fc8aa29e2a1c64dc90394ccbd4130.tar.gz
rust-51d598ec285fc8aa29e2a1c64dc90394ccbd4130.zip
Adjust documentation of `Arc::make_mut`
Related discussion in the users forum:
https://users.rust-lang.org/t/what-s-this-alleged-difference-between-arc-make-mut-and-rc-make-mut/63747?u=steffahn

Also includes small formatting improvement in the documentation of `Rc::make_mut`.

This commit makes the two documentations in question complete analogs. The previously claimed point in which
one "differs from the behavior of" the other turns out to be incorrect, AFAIK.

One remaining inaccuracy: `Weak` pointers aren't disassociated from the allocation but only from the contained
value, i.e. in case of outstanding `Weak` pointers there still is a new allocation created, just the
call to `.clone()` is avoided, instead the value is moved from one allocation to the other.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions