Skip to content

Lint on useless transmutes #441

Closed
Closed
@Manishearth

Description

@Manishearth

rust-lang/rust#11400

We should lint on transmutes between the same type, e.g. transmute::<u8,u8>(...)

The easiest thing to do here is to find ExprCalls which resolve to transmute, and checking if the expr_ty of the argument matches that of the whole call expression.

Metadata

Metadata

Assignees

No one assigned

    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