Skip to content
Unverified Commit 4279f33b authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Make `decl_runtime_apis!` fail on methods with default implementation (#7371)



* Make `decl_runtime_apis!` fail on methods with default implementation

Runtime api functions are not allowed to have default implementations.
This fixes this by throwing an error when we detect such a function.

* Update primitives/api/proc-macro/src/decl_runtime_apis.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update primitives/api/test/tests/ui/no_default_implementation.stderr

Co-authored-by: default avatarAndré Silva <[email protected]>
parent 1f46ce3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment