Skip to content

Fix MSRV violation in parse.rs test, check --all-targets in MSRV CI - #837

Merged
kylebarron merged 1 commit into
apache:mainfrom
alamb:alamb/msrv_all_targets
Aug 20, 2026
Merged

kylebarron merged 1 commit into
apache:mainfrom
alamb:alamb/msrv_all_targets

Conversation

@alamb

@alamb alamb commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

N/A — follow-up to a report by @progval in #812 (comment)

Rationale for this change

Some things still fail to compile on main with 1.85

error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
   --> src/parse.rs:477:25
    |
477 |         let body = str::from_utf8(&body).unwrap();
    |                         ^^^^^^^^^ function or associated item not found in `str`

CI did not catch this because the MSRV job runs doesn't check all targeets

What changes are included in this PR?

  1. Update MSRV check to include all targets
  2. Fix MSRV 1.85 issues

Are these changes tested?

Yes by CI

Are there any user-facing changes?

No, test and CI changes only.

str::from_utf8 (as an associated function on the str primitive) was
only stabilized in Rust 1.87, but the crate's MSRV is 1.85. The MSRV
CI job did not catch this because cargo-msrv's default check command
(cargo check) does not compile test code.

Use a custom cargo-msrv check command with --all-targets so tests,
examples, and benches are also verified against the MSRV.

Reported in apache#812 (comment)

Co-Authored-By: Claude Fable 5 <[email protected]>
@alamb
alamb marked this pull request as ready for review August 17, 2026 21:06
@alamb alamb added the development-process Related to development process of object-store label Aug 18, 2026

@kylebarron kylebarron 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.

Thanks!

@kylebarron
kylebarron merged commit 978fb48 into apache:main Aug 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of object-store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants