Skip to content

Unable to Refer to Clippy Lints on Beta #54406

Description

@etaoins

My existing code has:

#[allow(unreadable_literal)]

Which produces this warning on the beta channel:

lint name `unreadable_literal` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore

note: #[warn(renamed_and_removed_lints)] on by default
help: change it to: `clippy::unreadable_literal`

However, changing it to clippy::unreadable_literal causes the following:

scoped lint `clippy::unreadable_literal` is experimental (see issue #44690)

On nightly #![feature(tool_lints)] can be used as an escape hatch but that's not an option on beta.

IMO neither Nightly nor Beta should generate warnings to change code to something that requires a feature flag. The existing code was valid for the stable features of the language.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions