Skip to content

Better way to inject core macros #2247

Closed
@catamorphism

Description

@catamorphism

From a FIXME in src/librustcsyntax/ext/expand.rs (just before the core_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 ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions