Skip to content

Lint casting integers to pointers #2177

Closed
@oli-obk

Description

@oli-obk

rust-lang/rust#45527 gives us std::ptr::dangling which allows replacing 1 as _ with std::ptr::dangling(). Once that is stable, it should be a warn lint. Until then an allow lint is ok.

Should probably live together with the zero_ptr lint

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsT-middleType: Probably requires verifiying typesgood first issueThese issues are a good way to get started with Clippy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions