Skip to content

Remove impl Eq for Tree - #447

Merged
mkeeter merged 1 commit into
mainfrom
remove-tree-eq
Aug 11, 2026
Merged

Remove impl Eq for Tree#447
mkeeter merged 1 commit into
mainfrom
remove-tree-eq

Conversation

@mkeeter

@mkeeter mkeeter commented Aug 11, 2026

Copy link
Copy Markdown
Owner

TreeOp::Const(f64::NAN) or a TreeOp::RemapAffine with NaN values will break reflexivity.

We're discussing workarounds in #446 , but this is trivially incorrect at the moment; management apologizes for the inconvenience.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the Eq implementation for Tree to avoid violating Eq’s reflexivity requirement when NaN values are present in tree constants or affine remaps.

Changes:

  • Remove impl Eq for Tree from fidget-core (keeping PartialEq).
  • Add a changelog entry documenting the removal and rationale.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
fidget-core/src/context/tree.rs Removes Eq impl to avoid incorrect Eq semantics in presence of NaN.
CHANGELOG.md Notes the removal of Eq for Tree (but currently references a non-existent Tree::Const).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CHANGELOG.md Outdated
@mkeeter
mkeeter enabled auto-merge (squash) August 11, 2026 00:15
@mkeeter
mkeeter merged commit 3f23687 into main Aug 11, 2026
14 checks passed
@mkeeter
mkeeter deleted the remove-tree-eq branch August 11, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants