Skip to content

Commit db015c0

Browse files
committed
---
yaml --- r: 2191 b: refs/heads/master c: 540344a h: refs/heads/master i: 2189: b11bc3f 2187: 0878f8a 2183: c21f973 2175: 4dda144 v: v3
1 parent 2d81cb3 commit db015c0

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c78b73b71d82e4f428c60daee892b9d30e0e1029
2+
refs/heads/master: 540344acb9ebaa0141e991217c9fd9e2a5ec717a

trunk/src/comp/front/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ tag expr_ {
275275
expr_field(@expr, ident, ann);
276276
expr_index(@expr, @expr, ann);
277277
expr_path(path, option.t[def], ann);
278-
expr_ext(path, vec[@expr], option.t[@expr], @expr, ann);
278+
expr_ext(path, vec[@expr], option.t[str], @expr, ann);
279279
expr_fail(ann);
280280
expr_break(ann);
281281
expr_cont(ann);

trunk/src/comp/front/extfmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export expand_syntax_ext;
4646

4747
// FIXME: Need to thread parser through here to handle errors correctly
4848
fn expand_syntax_ext(vec[@ast.expr] args,
49-
option.t[@ast.expr] body) -> @ast.expr {
49+
option.t[str] body) -> @ast.expr {
5050

5151
if (_vec.len[@ast.expr](args) == 0u) {
5252
log_err "malformed #fmt call";

trunk/src/comp/front/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ fn parse_bottom_expr(parser p) -> @ast.expr {
794794
pf, p);
795795
hi = es.span.hi;
796796
ex = expand_syntax_ext(p, es.span, pth, es.node,
797-
none[@ast.expr]);
797+
none[str]);
798798
}
799799

800800
case (token.FAIL) {
@@ -935,7 +935,7 @@ fn parse_bottom_expr(parser p) -> @ast.expr {
935935

936936
fn expand_syntax_ext(parser p, ast.span sp,
937937
&ast.path path, vec[@ast.expr] args,
938-
option.t[@ast.expr] body) -> ast.expr_ {
938+
option.t[str] body) -> ast.expr_ {
939939

940940
check (_vec.len[ast.ident](path.node.idents) > 0u);
941941
auto extname = path.node.idents.(0);

trunk/src/comp/middle/fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ type ast_fold[ENV] =
173173

174174
(fn(&ENV e, &span sp,
175175
&path p, vec[@expr] args,
176-
option.t[@expr] body,
176+
option.t[str] body,
177177
@expr expanded,
178178
ann a) -> @expr) fold_expr_ext,
179179

@@ -1343,7 +1343,7 @@ fn identity_fold_expr_path[ENV](&ENV env, &span sp,
13431343

13441344
fn identity_fold_expr_ext[ENV](&ENV env, &span sp,
13451345
&path p, vec[@expr] args,
1346-
option.t[@expr] body,
1346+
option.t[str] body,
13471347
@expr expanded,
13481348
ann a) -> @expr {
13491349
ret @respan(sp, ast.expr_ext(p, args, body, expanded, a));

trunk/src/comp/middle/typestate_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,9 +1922,9 @@ fn annotate_expr(&fn_info_map fm, &@expr e) -> @expr {
19221922
case (expr_path(_,_,_)) {
19231923
/* no change */
19241924
}
1925-
case (expr_ext(?p, ?es, ?e_opt, ?e, ?a)) {
1925+
case (expr_ext(?p, ?es, ?s_opt, ?e, ?a)) {
19261926
e1 = expr_ext(p, annotate_exprs(fm, es),
1927-
annotate_option_exp(fm, e_opt),
1927+
s_opt,
19281928
annotate_expr(fm, e), a);
19291929
}
19301930
/* no change, next 3 cases */

0 commit comments

Comments
 (0)