about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-10-12 10:15:28 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-10-12 14:07:56 -0700
commit20991829e2639d1786acbd52621b220c89f0d9cb (patch)
treea7ff8a46ca55d95a90fefa785bc59667e94cfc23 /src/test/incremental/thinlto
parent2d71be5780f2c7548956625d2261d39798f3ce83 (diff)
parent829bd8c9b9519d7e4f769ad752b5da0ebe60e3ad (diff)
downloadrust-20991829e2639d1786acbd52621b220c89f0d9cb.tar.gz
rust-20991829e2639d1786acbd52621b220c89f0d9cb.zip
Rollup merge of #37084 - jseyfried:cleanup_expanded_macro_use_scopes, r=nrc
macros: clean up scopes of expanded `#[macro_use]` imports

This PR changes the scope of macro-expanded `#[macro_use]` imports to match that of unexpanded `#[macro_use]` imports. For example, this would be allowed:
```rust
example!();
macro_rules! m { () => { #[macro_use(example)] extern crate example_crate; } }
m!();
```

This PR also enforces the full shadowing restrictions from RFC 1560 on `#[macro_use]` imports (currently, we only enforce the weakened restrictions from #36767).

This is a [breaking-change], but I believe it is highly unlikely to cause breakage in practice.
r? @nrc
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions