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

build: upgrade to Rust 2024 edition #5224

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

siketyan
Copy link
Member

@siketyan siketyan commented Mar 1, 2025

Summary

Closes #5196

Test Plan

Existing tests should pass.

@siketyan siketyan self-assigned this Mar 1, 2025
@github-actions github-actions bot added A-CLI Area: CLI A-Core Area: core A-Project Area: project A-Linter Area: linter A-Parser Area: parser A-Formatter Area: formatter A-Tooling Area: internal tools L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS A-Diagnostic Area: diagnostocis L-Grit Language: GritQL labels Mar 1, 2025
Comment on lines +331 to +336
($least_expanded:expr, $($tail:expr),+ $(,)?) => {
// FIXME: Using any block in this macro causes a "temporary value dropped while borrowed"
// (E0716) error since Rust 2024 edition. It seems temporary lifetime extension is
// not working correctly, so it is a compiler bug?
$crate::macros::__macro_helper::best_fitting($crate::format_args!($least_expanded, $($tail),+))
};
Copy link
Member Author

Choose a reason for hiding this comment

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

😓

Copy link

codspeed-hq bot commented Mar 1, 2025

CodSpeed Performance Report

Merging #5224 will improve performances by 6.08%

Comparing siketyan:build/rust-2024 (f2d4776) with main (8d9d282)

Summary

⚡ 1 improvements
✅ 96 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
react.production.min_3378072959512366797.js[cached] 2 ms 1.9 ms +6.08%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Core Area: core A-Diagnostic Area: diagnostocis A-Formatter Area: formatter A-Linter Area: linter A-Parser Area: parser A-Project Area: project A-Tooling Area: internal tools L-CSS Language: CSS L-Grit Language: GritQL L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 Update project to Rust 2024 edition
1 participant