Skip to content

Better way to inject core macros #2247

Closed

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 ;-)

Activity

  1. msullivan commented on Jun 13, 2013

    @msullivan
    Contributor

    Issue #3114 seems like the approach we want to fix this. Changing the milestone to 3 to match #3114.

  2. msullivan commented on Jul 29, 2013

    @msullivan
    Contributor

    Nothing new.

  3. catamorphism commented on Oct 24, 2013

    @catamorphism
    ContributorAuthor

    Not 1.0, low

  4. added a commit that references this issue on Jan 25, 2014
    de57a22
  5. added a commit that references this issue on Jan 30, 2014
    15e7a7d
  6. added a commit that references this issue on Sep 22, 2022
  7. added a commit that references this issue on Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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