Skip to content

add must_use attributes#10682

Merged
pgherveou merged 4 commits intomasterfrom
pg/must_use_fixes
Dec 20, 2025
Merged

add must_use attributes#10682
pgherveou merged 4 commits intomasterfrom
pg/must_use_fixes

Conversation

@pgherveou
Copy link
Copy Markdown
Contributor

Add must_use attributes on arithmetic fns

Copy link
Copy Markdown
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Nice! You can read my mind. I started a similar branch :D

@pgherveou pgherveou enabled auto-merge December 18, 2025 07:39
@pgherveou
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

2 similar comments
@pgherveou
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

@pgherveou
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

@pgherveou pgherveou added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Dec 19, 2025
@github-actions
Copy link
Copy Markdown
Contributor

Command "prdoc --audience runtime_dev --bump patch" has failed ❌! See logs here

@github-actions
Copy link
Copy Markdown
Contributor

Command "prdoc --audience runtime_dev --bump patch" has failed ❌! See logs here

@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/20373340000
Failed job name: build-linux-substrate

@pgherveou pgherveou added this pull request to the merge queue Dec 20, 2025
Merged via the queue into master with commit 665b6c0 Dec 20, 2025
240 of 245 checks passed
@pgherveou pgherveou deleted the pg/must_use_fixes branch December 20, 2025 08:03
github-merge-queue Bot pushed a commit that referenced this pull request Jan 30, 2026
Bump pallet-staking-reward-fn to patch. This forces it to use local path
and the local sp-arithmetic instead of registry while running
`parity-publish`.
This aims to fix the failure in `Check publish build` job (e.g.
https://github.com/paritytech/polkadot-sdk/actions/runs/21359458014/job/61474963706?pr=10903#step:12:546)
which started to appear since #10682 got merged.

When parity-publish is used with --registry:
- If the version exists on crates.io → remove path, use registry
- If the version doesn't exist → keep path, use local
The issue is that --registry creates a hybrid state where some deps use
registry and some use local paths, causing version conflicts in case e.g
of missing trait impl in on the two.

Extended explanation, courtesy of @iulianbarbu : 
In the parity-publish CI job example we have:
- polkadot-runtime-common (crate A), depends on crate B indirectly &
crate C
- sp-arithmetic (crate B), was bumped locally (due to #10682), but not
published on the registry yet
- pallet-staking-reward-fn (crate C). depends on crate B.

polkadot-runtime-common fails to compile due to a dependency graph using
two versions of same type of crate B. What is an issue though is that
pallet-staking-reward-fn uses the previous crate B version (from the
registry), which misses a certain trait impl that is required by
polkadot-runtime-common. If polkadot-runtime-common usage of
pallet-staking-reward-fn expects the new trait impl, it means that it is
not enough to just bump pallet-staking-reward-fn, but also
polkadot-runtime-common, in this PR (to update it to depend on the new
version of pallet-staking-reward-fn). Everything compiles fine rn
because polkadot-runtime-common is already bumped in a previous PR (e.g
#10582 and maybe others), which did not make its way to a stable release
yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T1-FRAME This PR/Issue is related to core FRAME, the framework.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants