-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFC
Description
This is a tracking issue for the macros_in_extern
. This feature flag enables the usage of macro invocations in extern {}
blocks:
macro_rules! emit_foreign_item(
() => (fn read(fd: int, buf: *mut u8, size: usize) -> int;)
);
extern {
emit_foreign_item!();
}
Declarative maco, proc-macro and proc-macro-attribute invocations are allowed as well. Macro defintions, however, are not.
This feature is unstable because it was recently implemented in #49350 without an RFC. It is considered a discrepancy in macro support and not a new feature. It should be completely backwards-compatible.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFC