-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
format_args! does not respect integer literals' type #115423
Copy link
Copy link
Closed
Labels
A-fmtArea: `core::fmt`Area: `core::fmt`C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-fmtArea: `core::fmt`Area: `core::fmt`C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
When using the
1234i8syntax in the Display format in formatting macros, thei8is ignored and treated as au128.I tried this code:
I expected to see this happen: Getting an error that
0x8Fis out of the bounds for typei8.Instead, this happened: This function compiles and prints
143.Meta
rustc --version --verbose: