Skip to content

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Dec 2, 2018

I believe if the user already decided to put underscores in their literal, Clippy should be willing to believe that they put a number of underscores that they felt would be readable.

changelog: Remove large_digit_groups from default set of enabled lints

I believe if the user already decided to put underscores in their
literal, Clippy should be willing to believe that they put a number of
underscores that they felt was readable.
@phansch phansch added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 2, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Dec 3, 2018

does this affect 0b01110000011100110_u64?

@dtolnay
Copy link
Member Author

dtolnay commented Dec 3, 2018

This lint does not affect 0b01110000011100110_u64. The only lint currently triggered on:

fn main() {
    let _ = 0b01110000011100110_u64;
}

is unreadable_literal.

Large_digit_groups would be 0b01110_000011_100110_u64 for example.

@oli-obk oli-obk merged commit 13438b6 into rust-lang:master Dec 3, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Dec 3, 2018

Thanks for checking up on that

@dtolnay dtolnay deleted the literal branch December 3, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants