Bug 2450238 - rust-resctl-bench: FTBFS in Fedora Rawhide, soon in other branches
Summary: rust-resctl-bench: FTBFS in Fedora Rawhide, soon in other branches
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-resctl-bench
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rust SIG
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-23 07:17 UTC by Ben Beasley
Modified: 2026-11-01 03:34 UTC (History)
3 users (show)

Fixed In Version: rust-resctl-bench-2.2.5-16.fc45 rust-resctl-bench-2.2.5-16.fc43 rust-resctl-bench-2.2.5-16.el9 rust-resctl-bench-2.2.5-16.fc44
Clone Of:
Environment:
Last Closed: 2026-11-01 01:03:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Beasley 2026-03-23 07:17:26 UTC
Description of problem:
Package rust-resctl-bench fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
2.2.5-10.fc45

Steps to Reproduce:
koji build --scratch f45 rust-resctl-bench-2.2.5-10.fc45.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/rust-resctl-bench

error[E0283]: type annotations needed
   --> src/base.rs:503:43
    |
503 |             match af.report.data.sysloads.get(INODESTEAL_TEST.into()) {
    |                                           ^^^ ---------------------- type must be known at this point
    |                                           |                                                                                                                                            
    |                                           cannot infer type of the type parameter `Q` declared on the method `get`
    |
    = note: multiple `impl`s satisfying `std::string::String: Borrow<_>` found in the following crates: `alloc`, `core`:
            - impl Borrow<str> for std::string::String;
            - impl<T> Borrow<T> for T
              where T: ?Sized;
note: required by a bound in `BTreeMap::<K, V, A>::get`
   --> library/alloc/src/collections/btree/map.rs:718:4
help: consider specifying the generic argument
    |
503 |             match af.report.data.sysloads.get::<Q>(INODESTEAL_TEST.into()) {
    |                                              +++++


I used "fedpkg --release f44 mockbuild --enablerepo=updates-testing" to verify that whichever update is responsible is in fact in updates-testing, and you can expect that this package will soon FTBFS in all branches.

Comment 1 Fabio Valentini 2026-03-23 13:57:25 UTC
I believe the interesting error is actually further down in the build.log:

error[E0283]: type annotations needed
   --> src/base.rs:503:63
    |
503 |             match af.report.data.sysloads.get(INODESTEAL_TEST.into()) {
    |                                                               ^^^^
    |
    = note: multiple `impl`s satisfying `&_: From<&str>` found in the following crates: `core`, `zerocopy`:
            - impl<'a, T> From<&'a T> for &'a zerocopy::wrappers::read_only_def::ReadOnly<T>
              where T: zerocopy::Immutable, T: ?Sized;
            - impl<T> From<T> for T;
    = note: required for `&str` to implement `Into<&_>`

Indeed, the "zerocopy" crate was updates in rawhide and is in "testing" for other branches right now.

It looks like somewhere betweeen v0.8.31 and v0.8.47, new implementationi for `From<&str>` was added for types. This is not necessarily a breaking change, but can cause type inference failures like in this case.

The compiler error even says what to do here:

help: try using a fully qualified path to specify the expected types
    |
503 -             match af.report.data.sysloads.get(INODESTEAL_TEST.into()) {
503 +             match af.report.data.sysloads.get(<&str as Into<&Q>>::into(INODESTEAL_TEST)) {
    |

Comment 2 Ben Beasley 2026-03-24 07:48:16 UTC
Hmm, I tried that and got a further error:

error[E0425]: cannot find type `Q` in this scope
   --> src/base.rs:507:37
    |
507 |                 .get(<&str as Into<&Q>>::into(INODESTEAL_TEST))
    |                                     ^ not found in this scope
    |
help: you might be missing a type parameter
    |
 50 | impl<'a, Q> Base<'a> {
    |        +++

If I try that, I get:

error[E0425]: cannot find type `Q` in this scope
   --> src/base.rs:507:41
    |
507 |                 .get(<&str as Into<'a, &Q>>::into(INODESTEAL_TEST))
    |                                         ^ not found in this scope
    |
help: you might be missing a type parameter
    |
 50 | impl<'a, Q> Base<'a> {
    |        +++

It doesn’t help that I can’t seem to reproduce this easily in a git checkout, but I do run into other build issues with the path dependencies there.

Rather than either activating my brain and trying to reason about this on the one hand, or listening to the compiler and following the will-o’-the-wisp deeper into the bog on the other hand, I’m just going to leave this for a regular maintainer of the package to investigate.

Comment 3 Aoife Moloney 2026-08-17 14:21:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 4 Fedora Update System 2026-10-17 13:58:17 UTC
FEDORA-2026-a89a8dd5ed (rust-resctl-bench-2.2.5-14.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a89a8dd5ed

Comment 5 Fedora Update System 2026-10-17 13:58:18 UTC
FEDORA-EPEL-2026-3fd7822b43 (rust-resctl-bench-2.2.5-14.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-3fd7822b43

Comment 6 Fedora Update System 2026-10-17 13:58:18 UTC
FEDORA-2026-8a5026e14b (rust-resctl-bench-2.2.5-14.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8a5026e14b

Comment 7 Fabio Valentini 2026-10-17 22:15:26 UTC
Turns out, fixing this issue was much, much less involved that initially assumed.
Just dropping the ".into()" did the trick.

Comment 8 Fedora Update System 2026-10-18 01:51:56 UTC
FEDORA-2026-8a5026e14b has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-8a5026e14b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-8a5026e14b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-10-18 02:15:36 UTC
FEDORA-EPEL-2026-3fd7822b43 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-3fd7822b43

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-10-18 02:18:49 UTC
FEDORA-2026-83bc243165 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-83bc243165`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-83bc243165

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2026-10-18 02:46:39 UTC
FEDORA-2026-a89a8dd5ed has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a89a8dd5ed`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a89a8dd5ed

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-10-23 01:50:50 UTC
FEDORA-2026-6809b4143f has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-6809b4143f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-6809b4143f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2026-10-23 02:07:58 UTC
FEDORA-EPEL-2026-d8c3ea49ea has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-d8c3ea49ea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2026-10-23 02:59:57 UTC
FEDORA-2026-1af426cc3c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-1af426cc3c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-1af426cc3c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2026-10-23 03:15:11 UTC
FEDORA-2026-7327b9945e has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7327b9945e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7327b9945e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2026-10-24 16:32:42 UTC
FEDORA-EPEL-2026-d8c3ea49ea has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-d8c3ea49ea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2026-10-24 17:24:52 UTC
FEDORA-2026-7327b9945e has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7327b9945e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7327b9945e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2026-10-24 17:47:51 UTC
FEDORA-2026-1af426cc3c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-1af426cc3c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-1af426cc3c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2026-10-24 18:14:33 UTC
FEDORA-2026-6809b4143f has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-6809b4143f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-6809b4143f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2026-11-01 01:03:42 UTC
FEDORA-2026-6809b4143f (rust-resctl-bench-2.2.5-16.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2026-11-01 03:33:28 UTC
FEDORA-2026-1af426cc3c (rust-resctl-bench-2.2.5-16.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2026-11-01 03:34:14 UTC
FEDORA-2026-6809b4143f (rust-resctl-bench-2.2.5-16.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2026-11-01 03:34:15 UTC
FEDORA-EPEL-2026-d8c3ea49ea (rust-resctl-bench-2.2.5-16.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2026-11-01 03:34:48 UTC
FEDORA-2026-7327b9945e (rust-resctl-bench-2.2.5-16.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.