Skip to content

Regression in 1.26: lower range bound must be less than or equal to upper #49940

Closed
@pietroalbini

Description

@pietroalbini

The previous version of the chrono-humanize crate fails to compile with the lower range bound must be less than or equal to upper error (see the build log). No error nor warning was present in the 1.25 release.

error[E0030]: lower range bound must be less than or equal to upper
   --> src/humantime.rs:88:13
    |
 88 |             MIN...-1 => Tense::Past,
    |             ^^^ lower bound larger than upper bound

Since MIN is actually std::i64::MIN, the error is wrong and should be fixed.

Metadata

Metadata

Assignees

Labels

A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.T-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

Relationships

None yet

Development

No branches or pull requests

Issue actions