mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
sp-api: Support expanding the macro code (#13573)
* sp-api: Support expanding the macro code This pr introduces the `expander` crate to expand the generated source code into a file. This gives better error reporting when trying to fix issues in the macro itself as Rustc will point to the line in this file. The feature can be enabled by setting `SP_API_EXPAND=1` at compile time. Besides that the generated code is changed to fix warnings in the exanped version. * Fixes
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
error[E0433]: failed to resolve: could not find `ApiV4` in `runtime_decl_for_Api`
|
||||
error[E0433]: failed to resolve: could not find `ApiV4` in `runtime_decl_for_api`
|
||||
--> tests/ui/impl_missing_version.rs:21:13
|
||||
|
|
||||
21 | impl self::Api<Block> for Runtime {
|
||||
| ^^^ could not find `ApiV4` in `runtime_decl_for_Api`
|
||||
| ^^^ could not find `ApiV4` in `runtime_decl_for_api`
|
||||
|
||||
error[E0405]: cannot find trait `ApiV4` in module `self::runtime_decl_for_Api`
|
||||
error[E0405]: cannot find trait `ApiV4` in module `self::runtime_decl_for_api`
|
||||
--> tests/ui/impl_missing_version.rs:21:13
|
||||
|
|
||||
11 | pub trait Api {
|
||||
|
||||
Reference in New Issue
Block a user