Skip to content

[Question] How do deal with unseparated_literal_suffix and separated_literal_suffix when using -D clippy::restriction? #8101

@c410-f3r

Description

@c410-f3r

Description

unseparated_literal_suffix and separated_literal_suffix are both market as restriction but they conflict with each other when using -D clippy::restriction.

 | 34 | let a = 0u8; | ^^^ help: add an underscore: `0_u8` | = note: `-D clippy::unseparated-literal-suffix` implied by `-D clippy::restriction` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unseparated_literal_suffix
 | 34 | let a = 0_u8; | ^^^^ help: remove the underscore: `0u8` | = note: `-D clippy::separated-literal-suffix` implied by `-D clippy::restriction` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#separated_literal_suffix

I think it is clear that such conflict is pretty much wrong

Version

No response

Additional Labels

No response

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