Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 24, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

aidenfoxivey and others added 8 commits October 23, 2025 14:24
This commit adds tests that raise on `getclassvariable` and
`setclassvariable` to exercise the non-leaf cases as suggested in
#14918 (comment)
The `as` casts are somewhat dangerous since when the type on either side
change, it silently becomes a lossy conversion. This is why we have
`IntoUsize` as well as other guaranteed lossless conversion utilities
in stdlib. Use them.

For pointers-to-address, `ptr::addr` is more informative.

See also: https://tratt.net/laurie/blog/2021/static_integer_types.html
When the name is `as_*`, the guideline expects the return type to be a
reference type. Also, it's good to have contrast in the naming from
the more dangerous `as usize` cast `IntoUsize` is meant to be preferred
over.

See: https://rust-lang.github.io/api-guidelines/naming.html
@pull pull bot locked and limited conversation to collaborators Oct 24, 2025
@pull pull bot added the ⤵️ pull label Oct 24, 2025
@pull pull bot merged commit 230276d into turkdevops:master Oct 24, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants