-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Better way to inject core macros #2247
Copy link
Copy link
Closed
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.P-lowLow priorityLow priority
Metadata
Metadata
Assignees
Labels
A-syntaxextArea: Syntax extensionsArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.P-lowLow priorityLow priority
Type
Fields
Give feedbackNo fields configured for issues without a type.
From a FIXME in
src/librustcsyntax/ext/expand.rs(just before thecore_macros()function):"FIXME: this is a terrible kludge to inject some macros into the default
compilation environment. When the macro-definition system is substantially
more mature, these should move from here, into a compiled part of libcore
at very least."
The macros in question are
#error,#warn,#info, and#debug. The issue is to do something less kludgy ;-)