-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
A-lintArea: New lintsArea: New lintsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestionsL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codegood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
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.
scottmcm and pickfire
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestionsL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codegood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy