Repository navigation
Avoid Display panic for unbounded tracked precision - #10
Open
ValentinHirschi wants to merge 1 commit into
Open
ValentinHirschi wants to merge 1 commit into
ValentinHirschi wants to merge 1 commit into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Contributor
Author
|
@benruijl could you review this narrow Display fix? Native and portable owner tests pass. GitHub denied formal reviewer assignment for my account, so I am requesting review here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formatting a valid
ErrorPropagatingFloat::new_with_accuracy(1.0, f64::INFINITY)currently panics with “Formatting argument out of range”:Displaycasts the unbounded reported precision tousizeand uses it as a formatting precision. The same failure affects multiprecision values.Delegate unbounded reported precision to the wrapped value’s native
Displayimplementation, preserving caller formatting flags. Finite-precision and zero formatting retain their existing behavior. This changes formatting only; error propagation and arithmetic are unchanged. Unbounded reported precision is not treated as a certificate of exact arithmetic.Validation:
Based directly on current upstream main
a8a8fcb8941752e265e3c4fa507c02a3f06bb70e; independent of the pending tracking-range changes in #9.