about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAndreu Botella <andreu@andreubotella.com>2022-10-23 21:14:52 +0200
committerAndreu Botella <andreu@andreubotella.com>2022-10-24 10:51:50 +0200
commite49cde7500de100b4e30e86bff653d4f4660a496 (patch)
tree663e5875e586f9fdb02d0b7bc484d01ac9e0c0b5 /library/std/src/sys/unix/stack_overflow.rs
parent5b09d4e1f7082aff024faf27263f78e7fc7190a2 (diff)
downloadrust-e49cde7500de100b4e30e86bff653d4f4660a496.tar.gz
rust-e49cde7500de100b4e30e86bff653d4f4660a496.zip
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