rust-lang/rust-clippy
在 GitHub 查看Lint against calling intrinsics that have stable or safe wrappers
Open
#2,997 创建于 2018年8月3日
A-lintL-suggestionL-unnecessarygood first issue
仓库指标
- Star
- (10,406 star)
- PR 合并指标
- (平均合并 19天 22小时) (30 天内合并 113 个 PR)
描述
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.