-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
A-decl-macros-1-2Area: Declarative macros 1.2Area: Declarative macros 1.2E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
Something like this even passes through proc macro registrar generation!
#![feature(proc_macro)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::*;
fn foo(arg: TokenStream) -> TokenStream {
#[proc_macro]
pub fn foo(arg: TokenStream) -> TokenStream { arg }
arg
}And registrar interprets the outer foo as the proc macro instead of the inner one.
Metadata
Metadata
Assignees
Labels
A-decl-macros-1-2Area: Declarative macros 1.2Area: Declarative macros 1.2E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.