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

impl_ macros assume too much about scope #715

@gavofyork

Description

@gavofyork

From a compile error when impl_outer_log is used without having codec::Input in scope:

error[E0405]: cannot find trait `Input` in this scope
   --> runtime/src/lib.rs:249:1
    |
249 | / impl_outer_log! {
250 | |     pub enum Log(InternalLog: DigestItem<SessionKey>) for Runtime {
251 | |         consensus(AuthoritiesChange)
252 | |     }
253 | | }
    | |_^ not found in this scope
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

It should work regardless of the scope of the macro invoker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I4-annoyanceThe client behaves within expectations, however this “expected behaviour” itself is at issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions