Skip to content

regression: literal out of range #137893

@Mark-Simulacrum

Description

@Mark-Simulacrum

https://crater-reports.s3.amazonaws.com/beta-1.86-3/beta-2025-02-28/reg/checked_expr-0.3.0/log.txt

cc @oli-obk since I think you were refactoring something here recently?

[INFO] [stdout] error: literal out of range for `i8` [INFO] [stdout] --> src/lib.rs:25:29 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(checked_expr!(-(-128_i8)), None); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the literal `128_i8` does not fit into the type `i8` whose range is `-128..=127` [INFO] [stdout] = help: consider using the type `u8` instead [INFO] [stdout] = note: `#[deny(overflowing_literals)]` on by default 

Metadata

Metadata

Assignees

Labels

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

Relationships

None yet

Development

No branches or pull requests

Issue actions