Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing use<> to RPIT's #5222

Merged
merged 2 commits into from
Mar 2, 2025

Conversation

siketyan
Copy link
Member

@siketyan siketyan commented Mar 1, 2025

Summary

Part of #5196

In Rust 2024 edition, we need to add use<> notation to control which lifetime is captured in RPIT's (return-position impl Trait). This pull request adds these notations based on the impl_trait_overcaptures lint rule, before upgrading to 2024.

ref: https://doc.rust-lang.org/edition-guide/rust-2024/rpit-lifetime-capture.html

Test Plan

Existing tests should pass.

@siketyan siketyan self-assigned this Mar 1, 2025
@siketyan siketyan requested review from a team March 1, 2025 10:42
@github-actions github-actions bot added A-Core Area: core A-Linter Area: linter A-Parser Area: parser A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages L-Grit Language: GritQL labels Mar 1, 2025
@siketyan siketyan force-pushed the fix/impl-trait-overcaptures branch from 43ba80f to 785fabe Compare March 1, 2025 10:48
@github-actions github-actions bot added the A-Tooling Area: internal tools label Mar 1, 2025
Copy link

codspeed-hq bot commented Mar 1, 2025

CodSpeed Performance Report

Merging #5222 will not alter performance

Comparing siketyan:fix/impl-trait-overcaptures (ad52204) with main (344a131)

Summary

✅ 97 untouched benchmarks

@siketyan siketyan force-pushed the fix/impl-trait-overcaptures branch from 785fabe to ad52204 Compare March 2, 2025 06:28
@siketyan siketyan merged commit b2fb28e into biomejs:main Mar 2, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Core Area: core A-Formatter Area: formatter A-Linter Area: linter A-Parser Area: parser A-Tooling Area: internal tools L-Grit Language: GritQL L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants