Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Forbid stray tokens in call index #13036

Merged
merged 15 commits into from
Jan 2, 2023

Conversation

Szegoo
Copy link
Contributor

@Szegoo Szegoo commented Dec 30, 2022

Closes: #12954

@Szegoo Szegoo marked this pull request as ready for review December 31, 2022 08:29
@Szegoo
Copy link
Contributor Author

Szegoo commented Dec 31, 2022

@ggwpez PTAL.

frame/support/procedural/src/pallet/parse/call.rs Outdated Show resolved Hide resolved
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Thanks!

Just as a note, you can run the pallet ui tests locally instead of relying on the CI. Eg for your call index test:

RUN_UI_TESTS=1 rustup run 1.65 cargo test -p frame-support-test -- pallet_ui trybuild=call_index_has_suffix.rs

And optional with TRYBUILD=overwrite to overwrite the stderr files.

@ggwpez ggwpez added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jan 2, 2023
@ggwpez
Copy link
Member

ggwpez commented Jan 2, 2023

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit cbd8f1b into paritytech:master Jan 2, 2023
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* Check for call_index

* fixes

* pallet ui test for weight attribute

* Update frame/support/procedural/src/pallet/parse/call.rs

Co-authored-by: Bastian Köcher <[email protected]>

* fix

* small fix

* wrong return type

* ...

* .

* final fix

* update .stderr

* commit

* udpate

* Update frame/support/procedural/src/pallet/parse/call.rs

Co-authored-by: Bastian Köcher <[email protected]>

* update .stderr

Co-authored-by: Bastian Köcher <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Check for call_index

* fixes

* pallet ui test for weight attribute

* Update frame/support/procedural/src/pallet/parse/call.rs

Co-authored-by: Bastian Köcher <[email protected]>

* fix

* small fix

* wrong return type

* ...

* .

* final fix

* update .stderr

* commit

* udpate

* Update frame/support/procedural/src/pallet/parse/call.rs

Co-authored-by: Bastian Köcher <[email protected]>

* update .stderr

Co-authored-by: Bastian Köcher <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forbid stray tokens in pallet::call_index
3 participants