`decl_runtime_apis!` - check that a method without `changed_in` exists (#5635)
* `decl_runtime_apis!` - check that a method without `changed_in` exists This adds another check to the macro that ensures that not only methods with `changed_in` exists, but there are also the default methods exist. * Update primitives/api/proc-macro/src/decl_runtime_apis.rs Co-Authored-By:Nikolay Volf <nikvolf@gmail.com> * Fix test Co-authored-by:
Nikolay Volf <nikvolf@gmail.com>
Showing
- substrate/primitives/api/proc-macro/src/decl_runtime_apis.rs 48 additions, 1 deletionsubstrate/primitives/api/proc-macro/src/decl_runtime_apis.rs
- substrate/primitives/api/src/lib.rs 3 additions, 1 deletionsubstrate/primitives/api/src/lib.rs
- substrate/primitives/api/test/tests/ui/changed_in_no_default_method.rs 19 additions, 0 deletions...mitives/api/test/tests/ui/changed_in_no_default_method.rs
- substrate/primitives/api/test/tests/ui/changed_in_no_default_method.stderr 6 additions, 0 deletions...ves/api/test/tests/ui/changed_in_no_default_method.stderr
Please register or sign in to comment