Skip to content

Use clippy to avoid unchecked casts and arithmetic #1236

Closed
@RalfJung

Description

@RalfJung

@oli-obk writes

There's a clippy lint for this if we want to make sure we don't add more of these in the future: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic

AFAIK there is also one for casts, right?

Is there a good way to also subject the miri engine in librustc_mir/interpret to these checks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metaNot about any part of Miri per se, but about shaping the environment to make something in/with MiriC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked outE-good-first-issueA good way to start contributing, mentoring is available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions