]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #93109 - JakobDegen:arc-docs, r=m-ou-se
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 21 Jan 2022 21:03:18 +0000 (22:03 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 21:03:18 +0000 (22:03 +0100)
commit9474c74fb6eec4e84ecf26b950c0e27c7cf5f448
treef2fe482fbfa3b345238e864dfdd2a30b6c819772
parentab19d4a515366ab68b73af3f9a55db52d5542a06
parent4de76184aa7b8257d44b7a9abf5f140727c84b48
Rollup merge of #93109 - JakobDegen:arc-docs, r=m-ou-se

Improve `Arc` and `Rc` documentation

This makes two changes (I can split the PR if necessary, but the changes are pretty small):
 1. A bunch of trait implementations claimed to be zero cost; however, they use the `Arc<T>: From<Box<T>>` impl which is definitely not free, especially for large dynamically sized `T`.
 2.  The code in deferred initialization examples unnecessarily used excessive amounts of `unsafe`. This has been reduced.