about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-25 07:45:32 +0000
committerbors <bors@rust-lang.org>2022-10-25 07:45:32 +0000
commitde87e83d88876d810b475559d95c1741e54ffd9d (patch)
tree6429309512a6029f7ac35f7c5fce5c867ad06d6a /library/std/src/sys/unix/stack_overflow.rs
parent6f16596b6a8fa00395c0fef529225a2093a5a6ac (diff)
parente49cde7500de100b4e30e86bff653d4f4660a496 (diff)
downloadrust-de87e83d88876d810b475559d95c1741e54ffd9d.tar.gz
rust-de87e83d88876d810b475559d95c1741e54ffd9d.zip
Auto merge of #9700 - andreubotella:from-raw-with-void-non-box, r=flip1995
Update `from_raw_with_void_ptr` to support types other than `Box`

This PR updates the `from_raw_with_void_ptr` lint, which covered
`Box::from_raw`, to also cover the `from_raw` static method of the
`Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types.

It also improves the description and error messages of this lint.

---

changelog: [`from_raw_with_void_ptr`]: Now works with the `Rc`, `Arc`, `alloc::rc::Weak` and `alloc::sync::Weak` types.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions