Skip to content

std::fmt future-proofing: should precision be static error for integral types? #24767

Closed
@pnkfelix

Description

@pnkfelix

(spawned off of #24662)

The docs for the precision formatting parmeter http://doc.rust-lang.org/nightly/std/fmt/index.html#precision currently say:

For integral types, this has no meaning currently.

What that text apparently means today is "we silently ignore any such parameter"

The phrase "has no meaning currently" to me implies that we might add meaning in the future.

I do not even know if we could make this be a static error in a reasonable way for 1.0. But I figured I would ask the question: Should we consider trying to do so? Or should we just commit, for purposes of backwards compatibility, to this being a no-op for integral parameters?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions