Skip to content

Upgrade MSRV to Rust 1.88 - #41953

Closed
mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:rust-1.88
Closed

mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:rust-1.88

Conversation

@mrobinson

@mrobinson mrobinson commented Jan 16, 2026 •

Copy link
Copy Markdown
Member

This also fixes all new clippy warnings via cargo clippy --fix --all. The majority
of these changes are due to Rust now allowing the combination of if let with other
conditions. I have also used extract_if in a few places. There are other callsites
with comments about extract_if, but converting them was not straightforward
so I've left those for a followup.

Testing: This should not change behavior so is covered by existing tests.

This also fixes all new clippy warnings via `cargo clippy --fix --all`.

Signed-off-by: Martin Robinson <[email protected]>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 16, 2026
@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Jan 16, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Jan 16, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#21058781714) for Linux (WPT)

@codecov-commenter

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
861 1 860 0
View the top 1 failed test(s) by shortest run time
libservo::webview::test_webview_resize_interactivity
Stack Traces | 20s run time
No failure message available

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

})
.collect();
let ready_screenshot_requests = requests.extract_if(.., |screenshot_request| {
!matches!(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
!matches!(
matches!(

@servo-highfive servo-highfive added the S-needs-rebase There are merge conflict errors. label Jan 16, 2026

@sagudev sagudev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

otherwise LGTM

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 16, 2026
@github-actions

Copy link
Copy Markdown

⚠️ Try run (#21058781714) failed!

@mrobinson
mrobinson marked this pull request as draft January 16, 2026 10:01
@mrobinson

Copy link
Copy Markdown
Member Author

I'm going to hold off on this one until we can make sure that this won't cause too much disruption to anyone depending on the current MSRV.

@Loirooriol

Copy link
Copy Markdown
Contributor

Needs ./mach fmt

@mrobinson

Copy link
Copy Markdown
Member Author

I think I'll close this for now as it is going to bitrot very fast and it is fairly trivial to recreate it.

@mrobinson mrobinson closed this Jan 16, 2026
jdm pushed a commit to jdm/servo that referenced this pull request May 9, 2026
As discussed in [#general > Time to increase our MSRV @
💬](https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Time.20to.20increase.20our.20MSRV/near/593799178).

Only automated changes + what needs to be done to make it report no
warnings. Some more work should be possible (see servo#41953).

Testing: Just refactor
Reviewable per commit

---------

Signed-off-by: sagudev <[email protected]>
@mrobinson
mrobinson deleted the rust-1.88 branch November 21, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants