Skip to content

rustc_middle: ImmTy's Display implementation adds a weird-looking suffix to special floating point values. #118221

Closed
@eduardosm

Description

When printing an ImmTy that contains an special floating point value such as infinity or NaN, it will add an f32 or f64 suffix, making it look like Inff32 or NaNf32, which does not look very pretty.

First observed in rust-lang/miri#3185 (comment).

Metadata

Assignees

No one assigned

    Labels

    A-floating-pointArea: Floating point numbers and arithmeticA-prettyArea: Pretty printing (including `-Z unpretty`)C-bugCategory: This is a bug.C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions