Skip to content

Commit 869e965

Browse files
committed
---
yaml --- r: 12214 b: refs/heads/master c: 106c9fa h: refs/heads/master v: v3
1 parent f3c6627 commit 869e965

File tree

15 files changed

+46
-47
lines changed

15 files changed

+46
-47
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 14e9f58b50de04824a16007a48184ef2e3779251
2+
refs/heads/master: 106c9faa59c1a605d7e0d67da5b45d24863ec009
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/syntax/ext/auto_serialize.rs renamed to trunk/src/librustsyntax/ext/auto_serialize.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,17 @@ import base::*;
7373
import codemap::span;
7474
import std::map;
7575
import std::map::hashmap;
76-
import syntax::attr;
7776

7877
export expand;
7978

79+
// Transitional reexports so qquote can find the paths it is looking for
80+
mod syntax {
81+
import ext;
82+
export ext;
83+
import parse;
84+
export parse;
85+
}
86+
8087
type ser_tps_map = map::hashmap<str, fn@(@ast::expr) -> [@ast::stmt]>;
8188
type deser_tps_map = map::hashmap<str, fn@() -> @ast::expr>;
8289

trunk/src/rustc/syntax/ext/base.rs renamed to trunk/src/librustsyntax/ext/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import std::map::hashmap;
2-
import syntax::parse::parser;
3-
import driver::diagnostic::span_handler;
2+
import parse::parser;
3+
import diagnostic::span_handler;
44
import codemap::{codemap, span, expn_info, expanded_from};
55
import std::map::str_hash;
66

trunk/src/rustc/syntax/ext/build.rs renamed to trunk/src/librustsyntax/ext/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import codemap::span;
2-
import syntax::ext::base::ext_ctxt;
2+
import base::ext_ctxt;
33

44
// NOTE: Moved from fmt.rs which had this fixme:
55
// FIXME: Cleanup the naming of these functions

trunk/src/rustc/syntax/ext/concat_idents.rs renamed to trunk/src/librustsyntax/ext/concat_idents.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base::*;
2-
import syntax::ast;
32

43
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
54
_body: ast::mac_body) -> @ast::expr {

trunk/src/rustc/syntax/ext/expand.rs renamed to trunk/src/librustsyntax/ext/expand.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import driver::session;
2-
import driver::session::session;
3-
41
import std::map::hashmap;
52

6-
import syntax::attr;
7-
8-
import syntax::ast::{crate, expr_, expr_mac, mac_invoc};
9-
import syntax::fold::*;
10-
import syntax::ext::base::*;
11-
import syntax::ext::qquote::{qq_helper};
12-
import syntax::parse::parser;
13-
import syntax::parse::parser::parse_expr_from_source_str;
3+
import ast::{crate, expr_, expr_mac, mac_invoc};
4+
import fold::*;
5+
import ext::base::*;
6+
import ext::qquote::{qq_helper};
7+
import parse::parser;
8+
import parse::parser::parse_expr_from_source_str;
149

1510

1611
import codemap::{span, expanded_from};

trunk/src/rustc/syntax/ext/fmt.rs renamed to trunk/src/librustsyntax/ext/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import extfmt::ct::*;
99
import base::*;
1010
import codemap::span;
11-
import syntax::ext::build::*;
11+
import ext::build::*;
1212
export expand_syntax_ext;
1313

1414
fn expand_syntax_ext(cx: ext_ctxt, sp: span, arg: ast::mac_arg,

trunk/src/rustc/syntax/ext/ident_to_str.rs renamed to trunk/src/librustsyntax/ext/ident_to_str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base::*;
2-
import syntax::ast;
32

43
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,
54
_body: ast::mac_body) -> @ast::expr {

trunk/src/rustc/syntax/ext/log_syntax.rs renamed to trunk/src/librustsyntax/ext/log_syntax.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base::*;
2-
import syntax::ast;
32
import io::writer_util;
43

54
fn expand_syntax_ext(cx: ext_ctxt, sp: codemap::span, arg: ast::mac_arg,

trunk/src/rustc/syntax/ext/qquote.rs renamed to trunk/src/librustsyntax/ext/qquote.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import syntax::ast::{crate, expr_, mac_invoc,
1+
import ast::{crate, expr_, mac_invoc,
22
mac_aq, mac_var};
3-
import syntax::fold::*;
4-
import syntax::visit::*;
5-
import syntax::ext::base::*;
6-
import syntax::ext::build::*;
7-
import syntax::parse::parser;
8-
import syntax::parse::parser::{parser, parse_from_source_str};
3+
import fold::*;
4+
import visit::*;
5+
import ext::base::*;
6+
import ext::build::*;
7+
import parse::parser;
8+
import parse::parser::{parser, parse_from_source_str};
99

10-
import syntax::print::*;
10+
import print::*;
1111
import io::*;
1212

1313
import codemap::span;
@@ -127,7 +127,7 @@ fn visit_aq_ty(node: @ast::ty, &&cx: aq_ctxt, v: vt<aq_ctxt>) {
127127
}
128128

129129
fn is_space(c: char) -> bool {
130-
syntax::parse::lexer::is_whitespace(c)
130+
parse::lexer::is_whitespace(c)
131131
}
132132

133133
fn expand_ast(ecx: ext_ctxt, _sp: span,

trunk/src/librustsyntax/rustsyntax.rc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,19 @@ mod parse {
2626
mod print {
2727
mod pp;
2828
mod pprust;
29-
}
29+
}
30+
31+
mod ext {
32+
mod base;
33+
mod expand;
34+
mod qquote;
35+
mod build;
36+
37+
mod fmt;
38+
mod env;
39+
mod simplext;
40+
mod concat_idents;
41+
mod ident_to_str;
42+
mod log_syntax;
43+
mod auto_serialize;
44+
}

trunk/src/rustc/rustc.rc

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,7 @@ mod middle {
6868
}
6969
}
7070

71-
72-
mod syntax {
73-
mod ext {
74-
mod base;
75-
mod expand;
76-
mod qquote;
77-
mod build;
78-
79-
mod fmt;
80-
mod env;
81-
mod simplext;
82-
mod concat_idents;
83-
mod ident_to_str;
84-
mod log_syntax;
85-
mod auto_serialize;
86-
}
87-
}
71+
mod syntax;
8872

8973
mod front {
9074
mod config;

trunk/src/rustc/syntax.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export util;
2626
import rustsyntax::attr;
2727
export attr;
2828

29+
import rustsyntax::ext;
2930
export ext;

0 commit comments

Comments
 (0)