]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53270 - petrochenkov:macuse-regr, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 13 Aug 2018 17:10:04 +0000 (17:10 +0000)
committerbors <bors@rust-lang.org>
Mon, 13 Aug 2018 17:10:04 +0000 (17:10 +0000)
commitd5a448b3f47b22c9cb010198bdcc49d4392b090b
tree9f47b8e75e0a508001d99285f1481bbdef5eb054
parenta78ae85e5942b5d41c7bddf8243ede7f350d4886
parentdd0a766e06fc553a0321fb04eb51910bfd2c7097
Auto merge of #53270 - petrochenkov:macuse-regr, r=alexcrichton

Fix a few regressions from enabling macro modularization

The first commit restores the old behavior for some minor unstable stuff (`rustc_*` and `derive_*` attributes) and adds a new feature gate for arbitrary tokens in non-macro attributes.

The second commit fixes https://github.com/rust-lang/rust/issues/53205

The third commit fixes https://github.com/rust-lang/rust/issues/53144.
Same technique is used as for other things blocking expansion progress - if something causes indeterminacy too often, then prohibit it.
In this case referring to crate-local macro-expanded `#[macro_export]` macros via module-relative paths is prohibited, see comments in code for more details.

cc https://github.com/rust-lang/rust/pull/50911