Skip to content

Why is replace_consts enabled by default? #2380

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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