rust/src/libsyntax/ext/tt
Jonathan Turner f1ea5cc273 Rollup merge of #36789 - jseyfried:non_inline_mod_in_block, r=nikomatsakis
Allow more non-inline modules in blocks

Currently, non-inline modules without a `#[path]` attribute are not allowed in blocks.
This PR allows non-inline modules that have an ancestor module with a `#[path]` attribute, provided there is not a nearer ancestor block.

For example,
```rust
fn main() {
    #[path = "..."] mod foo {
        mod bar; //< allowed by this PR
        fn f() {
            mod bar; //< still an error
        }
    }
}
```

Fixes #36772.
r? @nikomatsakis
2016-09-28 20:21:52 -07:00
..
macro_parser.rs Replace _, _ with .. 2016-09-04 12:30:33 +03:00
macro_rules.rs Rollup merge of #36789 - jseyfried:non_inline_mod_in_block, r=nikomatsakis 2016-09-28 20:21:52 -07:00
transcribe.rs Make metavariables hygienic. 2016-08-07 06:01:01 +00:00