Skip to content

Upgrade imara-diff to 0.2.0#24299

Merged
MichaReiser merged 2 commits intoastral-sh:mainfrom
WilliamCollishaw:upgrade-imara-diff
Mar 30, 2026
Merged

Upgrade imara-diff to 0.2.0#24299
MichaReiser merged 2 commits intoastral-sh:mainfrom
WilliamCollishaw:upgrade-imara-diff

Conversation

@WilliamCollishaw
Copy link
Copy Markdown
Contributor

Summary

As mentioned by @dhruvmanila in #19039, imara-diff was upgraded with breaking changes and no migration guide.

  • All usage of diff(...) has been replaced with Diff::compute(...) (sample).
  • intern module has been made made private (source) forcing us to use imara_diff::InternedInput over imara_diff::intern::InternedInput
  • count_additions and count_removals functions have been implemented in the new Diff struct (can no longer directly access removals and insertions (source)
  • renames usage of insertions to additions to align with the new count_additions fuction

Test Plan

Ran Ruff's test suite using CONTRIBUTING.md as a guide. Additionally ran cargo dev generate-all

@WilliamCollishaw WilliamCollishaw changed the title Upgrade imara diff Upgrade imara-diff to 0.2.0 Mar 30, 2026
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 30, 2026

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 86.61%. The percentage of expected errors that received a diagnostic held steady at 81.56%. The number of fully passing files held steady at 70/132.

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 30, 2026

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 30, 2026

ecosystem-analyzer results

No diagnostic changes detected ✅

Full report with detailed diff (timing results)

@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 30, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@MichaReiser MichaReiser added the internal An internal refactor or improvement label Mar 30, 2026
@MichaReiser
Copy link
Copy Markdown
Member

Thank you

@MichaReiser MichaReiser merged commit 7c236fa into astral-sh:main Mar 30, 2026
49 checks passed
carljm added a commit that referenced this pull request Mar 31, 2026
* main: (35 commits)
  Store definition indexes as u32 (#24307)
  Avoid re-using symbol in RUF024 fix (#24316)
  [ty] Add materialization to `Divergent` type (#24255)
  [ty] Make `Divergent` a top-level type variant (#24252)
  [ty] Fix nested global and nonlocal lookups through forwarding scopes (#24279)
  Fetch the cargo-dist binary directly instead of using the installer (#24258)
  [ty] Fix panic on `list[Annotated[()]]` (#24303)
  Don't measure the AST deallocation time in parser benchmarks (#24301)
  Enable CodSpeed's memory benchmarks for simulation benchmarks (#24298)
  Upgrade imara-diff to 0.2.0 (#24299)
  [ty] Represent `InitVar` as a special form internally, not a class (#24248)
  `RUF067`: Allow dunder-named assignments in non-strict mode
  [`pyupgrade`] UP018 should detect more unnecessarily wrapped literals (UP018) (#24093)
  [ty] Remove unused `system.glob` method (#24300)
  [ty] Reject functional TypedDict with mismatched name (#24295)
  Update Rust crate arc-swap to v1.9.0 (#24292)
  [ty] Remove unused `@Todo(Functional TypedDicts)` (#24297)
  Update CodSpeedHQ/action action to v4.12.1 (#24290)
  Update taiki-e/install-action action to v2.69.6 (#24293)
  Update Rust crate toml to v1.0.7 (#24289)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants