Skip to content

kernel: pass mutability on explicitly to new lists - #6704

Merged
fingolfin merged 1 commit into
masterfrom
mh-claude/explicit-result-mutability
Oct 8, 2026
Merged

fingolfin merged 1 commit into
masterfrom
mh-claude/explicit-result-mutability

Conversation

@fingolfin

Copy link
Copy Markdown
Member

Some functions create their result with the tnum of an argument, and thereby give it the mutability of that argument: ZeroSameMutability for plain lists of FFEs, sums and differences of a cyclotomic vector and a scalar, and REDUCE_LETREP_WORDS_REW_SYS. Change this to be explicit, so that this keeps working once mutability is no longer part of the tnum (see #6025).

Assisted-by: Claude Code (Opus 5.5)

Some functions create their result with the tnum of an argument, and
thereby give it the mutability of that argument: ZeroSameMutability for
plain lists of FFEs, sums and differences of a cyclotomic vector and a
scalar, and REDUCE_LETREP_WORDS_REW_SYS. Say so explicitly, so that
this keeps working once mutability is no longer part of the tnum (see
#6025).

Assisted-by: Claude Code (Opus 5.5)
@fingolfin fingolfin added topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Oct 8, 2026
@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.57%. Comparing base (512ea92) to head (87a8031).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6704   +/-   ##
=======================================
  Coverage   79.57%   79.57%           
=======================================
  Files         683      683           
  Lines      295429   295434    +5     
  Branches     8648     8648           
=======================================
+ Hits       235091   235097    +6     
  Misses      58518    58518           
+ Partials     1820     1819    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@james-d-mitchell james-d-mitchell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like a sensible change to me.

@fingolfin
fingolfin merged commit 5680620 into master Oct 8, 2026
33 of 34 checks passed
@fingolfin
fingolfin deleted the mh-claude/explicit-result-mutability branch October 8, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants