Skip to content

Overflowing literal lint is silenced in range literals in loops on nightly #60459

Closed
@varkor

Description

@varkor
fn main() {
    for _ in 0..256u8 {} // should warn
}

since #60330.

Metadata

Metadata

Labels

A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions