rust-lang/rust-clippy
Vedi su GitHubLint against calling intrinsics that have stable or safe wrappers
Open
#2997 aperta il 3 ago 2018
A-lintL-suggestionL-unnecessarygood first issue
Metriche repository
- Star
- (10.406 star)
- Metriche merge PR
- (Merge medio 19g 22h) (113 PR mergiate in 30 g)
Descrizione
There are some intrinsics that there should be no reason to call. For example core::intrinsics::size_of. This intrinsic is exposed by the safe function core::mem::size_of which should always be called instead.
I would like to suggest a Clippy lint that notices calls to no-reason-to-call intrinsics and recommends the right stable or safe wrapper to call instead.