about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-22 16:33:41 -0700
committerGitHub <noreply@github.com>2016-09-22 16:33:41 -0700
commit3a5d975fdcef451375df20e5ac234bb01e453e33 (patch)
tree5c4c7a4d56802f431fd19f7b5d511c77f95450a3 /src/rustllvm/RustWrapper.cpp
parent4c04e36f94c4b85b613a2d5fe5c9511053cbdec2 (diff)
parent3863834d9c75230224e36783780d260f52e10d49 (diff)
downloadrust-3a5d975fdcef451375df20e5ac234bb01e453e33.tar.gz
rust-3a5d975fdcef451375df20e5ac234bb01e453e33.zip
Auto merge of #36154 - nrc:proc-macro-init, r=@jseyfried
Adds a `ProcMacro` form of syntax extension

This commit adds syntax extension forms matching the types for procedural macros 2.0 (RFC #1566), these still require the usual syntax extension boiler plate, but this is a first step towards proper implementation and should be useful for macros 1.1 stuff too.

Supports both attribute-like and function-like macros.

Note that RFC #1566 has not been accepted yet, but I think there is consensus that we want to head in vaguely that direction and so this PR will be useful in any case. It is also fairly easy to undo and does not break any existing programs.

This is related to #35957 in that I hope it can be used in the implementation of macros 1.1, however, there is no direct overlap and is more of a complement than a competing proposal. There is still a fair bit of work to do before the two can be combined.

r? @jseyfried

cc @alexcrichton, @cgswords, @eddyb, @aturon
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions