Skip to content

Suggest raw_ptr.cast() over raw_ptr as _ #4065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
oli-obk opened this issue May 7, 2019 · 1 comment
Closed

Suggest raw_ptr.cast() over raw_ptr as _ #4065

oli-obk opened this issue May 7, 2019 · 1 comment
Labels
A-lint Area: New lints L-complexity Lint: Belongs in the complexity lint group L-style Lint: Belongs in the style lint group L-unnecessary Lint: Warn about unnecessary code S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work T-middle Type: Probably requires verifiying types

Comments

@oli-obk
Copy link
Contributor

oli-obk commented May 7, 2019

The proposed cast method only allows casting the type without touching the mut/constness or even going to usize.

@oli-obk oli-obk added T-middle Type: Probably requires verifiying types A-lint Area: New lints L-style Lint: Belongs in the style lint group L-unnecessary Lint: Warn about unnecessary code S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work L-complexity Lint: Belongs in the complexity lint group labels May 7, 2019
@flip1995
Copy link
Member

Closing, since #5890 has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints L-complexity Lint: Belongs in the complexity lint group L-style Lint: Belongs in the style lint group L-unnecessary Lint: Warn about unnecessary code S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work T-middle Type: Probably requires verifiying types
Projects
None yet
Development

No branches or pull requests

2 participants