diff options
| author | bors <bors@rust-lang.org> | 2014-01-18 13:01:47 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-18 13:01:47 -0800 |
| commit | b5a110c7feed3a87a0daee1e829fa0cb03026a4e (patch) | |
| tree | 3844da3af36ea7c9932b6074348c923e333aa51f /src/libsyntax/ext | |
| parent | c5d05acf392afc9c480ee7b23f2132c1a110de8c (diff) | |
| parent | 4a78364d491ee2d3a49f4ed5e62f63cd5748d898 (diff) | |
| download | rust-b5a110c7feed3a87a0daee1e829fa0cb03026a4e.tar.gz rust-b5a110c7feed3a87a0daee1e829fa0cb03026a4e.zip | |
auto merge of #11607 : alexcrichton/rust/issue-9957, r=cmr
For `use` statements, this means disallowing qualifiers when in functions and disallowing `priv` outside of functions. For `extern mod` statements, this means disallowing everything everywhere. It may have been envisioned for `pub extern mod foo` to be a thing, but it currently doesn't do anything (resolve doesn't pick it up), so better to err on the side of forwards-compatibility and forbid it entirely for now. Closes #9957
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 27f41356a4b..8b5e6872839 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -648,7 +648,7 @@ fn expand_wrapper(cx: &ExtCtxt, sp: Span, cx_expr: @ast::Expr, expr: @ast::Expr) -> @ast::Expr { - let uses = ~[ cx.view_use_glob(sp, ast::Public, + let uses = ~[ cx.view_use_glob(sp, ast::Inherited, ids_ext(~[~"syntax", ~"ext", ~"quote", |
