Skip to content

Adopt Rust 1.97 integer APIs and Cargo warning policy - #29048

Merged
charliermarsh merged 2 commits into
mainfrom
charlie/rust-1.97-apis
Oct 1, 2026
Merged

charliermarsh merged 2 commits into
mainfrom
charlie/rust-1.97-apis

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Use the integer bit APIs stabilized in Rust 1.97 for packed node indices, token capacity, rule iteration, and type-variable support sets.
  • Use Cargo's warning policy in our native and WASM Clippy checks, keeping warnings fatal without changing compiler flags and invalidating the build cache. Update the contributing guides to match.

Preserves the Rust 1.97 MSRV. The warning policy change follows astral-sh/uv#22122.

@astral-sh-bot

astral-sh-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 98.24%. The percentage of expected errors that received a diagnostic held steady at 98.24%. The number of fully passing files held steady at 134/146.

@astral-sh-bot

astral-sh-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Full report with detailed diff (timing results)

@astral-sh-bot

astral-sh-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

astral-sh-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

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.

Base automatically changed from charlie/rust-1.99 to main October 1, 2026 16:20
@charliermarsh
charliermarsh force-pushed the charlie/rust-1.97-apis branch from fc6a514 to c0f3a95 Compare October 1, 2026 16:24
@charliermarsh
charliermarsh marked this pull request as ready for review October 1, 2026 16:38
@charliermarsh charliermarsh added the internal An internal refactor or improvement (not for changelogs) label Oct 1, 2026
@codspeed

codspeed Bot commented Oct 1, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 4.19%

⚡ 1 improved benchmark
✅ 221 untouched benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime auto_imports[namespace-package/after-module-create] 29.5 ms 28.3 ms +4.19%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing charlie/rust-1.97-apis (4c18fe8) with main (a81291e)

Open in CodSpeed

@charliermarsh
charliermarsh merged commit 598f4bd into main Oct 1, 2026
73 checks passed
@charliermarsh
charliermarsh deleted the charlie/rust-1.97-apis branch October 1, 2026 18:01
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 (not for changelogs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants