about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2014-07-09 14:48:12 -0700
committerJohn Clements <clements@racket-lang.org>2014-07-11 10:32:41 -0700
commit53642eed801d157613de0998cdcf0a3da8c36cb3 (patch)
tree4d9232bac52072c177895e7de997b5ca00da98d5 /src/rustllvm/ExecutionEngineWrapper.cpp
parentf1ad425199b0d89dab275a8c8f6f29a73d316f70 (diff)
downloadrust-53642eed801d157613de0998cdcf0a3da8c36cb3.tar.gz
rust-53642eed801d157613de0998cdcf0a3da8c36cb3.zip
make walk/visit_mac opt-in only
macros can expand into arbitrary items, exprs, etc. This
means that using a default walker or folder on an AST before
macro expansion is complete will miss things (the things that
the macros expand into). As a partial fence against this, this
commit moves the default traversal of macros into a separate
procedure, and makes the default trait implementation signal
an error. This means that Folders and Visitors can traverse
macros if they want to, but they need to explicitly add an
impl that calls the walk_mac or fold_mac procedure

This should prevent problems down the road.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions