Skip to content

Work out how to lint against u64::pow #2364

Open
@michaelsproul

Description

@michaelsproul

Description

As discussed here #2350 (comment), the disallowed-methods Clippy lint doesn't seem to work for associated functions on primitive types. This lint was originally created by a Lighthouse contributor for #1621, and has been improved by other Clippy contributors since!

To resolve this issue we should put some print statements in Clippy to work out what AST it sees for functions like u64::pow, and then work out how to incorporate detection of those AST nodes.

Version

Rust 1.52.1 (stable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A2consensusAn issue/PR that touches consensus code, such as state_processing or block verification.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions