Fixes path issue in derive-impl (#1823)
Needs https://github.com/sam0x17/macro_magic/pull/13 The associated PR allows the export of tokens from macro_magic at the specified path. This fixes the path issue in derive-impl. Now, we can import the default config using the standard rust syntax: ```rust use frame_system::config_preludes::TestDefaultConfig; [derive_impl(TestDefaultConfig as frame_system::DefaultConfig)] impl frame_system::DefaultConfig for Test { //.... } ```
Showing
- substrate/frame/examples/default-config/src/lib.rs 4 additions, 3 deletionssubstrate/frame/examples/default-config/src/lib.rs
- substrate/frame/support/procedural/src/lib.rs 3 additions, 3 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/test/tests/derive_impl_ui/bad_default_impl_path.stderr 3 additions, 5 deletions...rt/test/tests/derive_impl_ui/bad_default_impl_path.stderr
- substrate/frame/support/test/tests/derive_impl_ui/inject_runtime_type_fails_when_type_not_in_scope.stderr 1 addition, 1 deletion...i/inject_runtime_type_fails_when_type_not_in_scope.stderr
Please register or sign in to comment