Skip to content

Update MSRV to 1.88 #8462

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

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

Update MSRV to 1.88 #8462

wants to merge 9 commits into from

Conversation

drinkcat
Copy link
Collaborator

Work in progress, lots of let-chains to replace.

@drinkcat drinkcat changed the title Update MSRV 1.88 Update MSRV to 1.88 Aug 11, 2025
Now that we moved to 1.88.0 MSRV, we can use that syntax.

Run `cargo +1.89.0 clippy --all-targets --all-features --tests --no-deps -pcoreutils -- -D warnings`
until it became happy.

This was useful, as `--fix` doesn't directly work on the command above:
ls src/uu/ | xargs -I{} cargo +1.89.0 clippy --all-targets --all-features --tests --no-deps -puu_{} --fix --allow-dirty -- -D warnings
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

It does appear 0.2.37 is not supported by Rust 1.88.0
I found the suggested let-chain clunky, let's rework it.
We can just check if the value is Some(true).
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

The let-chain made it more obvious that this could be simplified.
Now that let-chain are allowed, we can improve the code a little
bit.
@drinkcat
Copy link
Collaborator Author

drinkcat commented Aug 11, 2025

redoxer build is not happy, even after update to 0.2.54 (https://github.com/drinkcat/coreutils/actions/runs/16870133030/job/47783201524):

error: rustc 1.86.0-nightly is not supported by the following packages:
  [email protected] requires rustc 1.88.0
  [email protected] requires rustc 1.88.0
  [email protected] requires rustc 1.88.0

redoxer cargo: exit status: 101

I must say I'm totally unfamiliar with Redox... @jackpot51 is this something we can fix on coreutils' CI side? Or should we wait for a new release?

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant