]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #66710 - vorner:weak-into-raw-null-docs, r=dtolnay
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 5 Dec 2019 18:03:08 +0000 (19:03 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Dec 2019 18:03:08 +0000 (19:03 +0100)
commitbcf992dc6c6e0e8ff81f46ed0925d274b3979251
tree2a51d461bd33e528c463b197e2bb7424d6196b00
parenta0312c156d8470179101ab71ef6a69c0b9a8dd0b
parent473151070bd939239aa8f9bf218e2753b8a479cf
Rollup merge of #66710 - vorner:weak-into-raw-null-docs, r=dtolnay

weak-into-raw: Clarify some details in Safety

Clarify it is OK to pass a pointer that never owned a weak count (one
from Weak::new) back into it as it was created from it. Relates to
discussion in #60728.

@CAD97 Do you want to have a look at the new docs?
src/liballoc/rc.rs
src/liballoc/sync.rs