Skip to content

Why is replace_consts enabled by default? #2380

Closed
@gnzlbg

Description

@gnzlbg

The replace_consts lint is enabled in clippy-pedantic by default.

The docs hints that using consts is bad because const fn exists.

This does not make any sense to me: why should const fn be preferred over consts? Are associated consts also bad?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentationgood 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