about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-11-17 07:43:50 -0800
committerGitHub <noreply@github.com>2016-11-17 07:43:50 -0800
commitc57b8261496d548e0a3cd8468061ddc5a4dcafe2 (patch)
treeaa6b693f0cda3854318d75b7708f593f52b4f645 /src/rustllvm/RustWrapper.cpp
parent5bd1e7f59ffe6126db57ea94b90690d1ac39b932 (diff)
parent6cb33a089fc4727bc070899f57aab3be1b215785 (diff)
downloadrust-c57b8261496d548e0a3cd8468061ddc5a4dcafe2.tar.gz
rust-c57b8261496d548e0a3cd8468061ddc5a4dcafe2.zip
Auto merge of #37732 - jseyfried:use_extern_macros, r=nrc
Support `use`ing externally defined macros behind `#![feature(use_extern_macros)]`

With `#![feature(use_extern_macros)]`,
 - A name collision between macros from different upstream crates is much less of an issue since we can `use` the macros in different submodules or rename with `as`.
 - We can reexport macros with `pub use`, so `#![feature(macro_reexport)]` is no longer needed.
 - These reexports are allowed in any module, so crates can expose a macro-modular interface.

If a macro invocation can resolve to both a `use` import and a `macro_rules!` or `#[macro_use]`, it is an ambiguity error.

r? @nrc
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions