frame pallet macro: fix span for error on wrong returned type. (#5580)
Explicitly give the types in some generated code so that the error shows
up good when user code is wrong.
---------
Co-authored-by:
Bastian Köcher <git@kchr.de>
Showing
- prdoc/pr_5580.prdoc 13 additions, 0 deletionsprdoc/pr_5580.prdoc
- substrate/frame/support/procedural/src/pallet/expand/call.rs 27 additions, 9 deletionssubstrate/frame/support/procedural/src/pallet/expand/call.rs
- substrate/frame/support/procedural/src/pallet/parse/call.rs 4 additions, 7 deletionssubstrate/frame/support/procedural/src/pallet/parse/call.rs
- substrate/frame/support/procedural/src/pallet/parse/helper.rs 18 additions, 5 deletions...trate/frame/support/procedural/src/pallet/parse/helper.rs
- substrate/frame/support/test/tests/pallet_ui/call_span_for_error.rs 37 additions, 0 deletions...frame/support/test/tests/pallet_ui/call_span_for_error.rs
- substrate/frame/support/test/tests/pallet_ui/call_span_for_error.stderr 26 additions, 0 deletions...e/support/test/tests/pallet_ui/call_span_for_error.stderr