Skip to content

Commit 40c60a2

Browse files
catamorphismgraydon
authored andcommitted
---
yaml --- r: 2639 b: refs/heads/master c: bb594a0 h: refs/heads/master i: 2637: cdfddaa 2635: a9fe725 2631: 724e6d0 2623: 766a3c9 v: v3
1 parent 17e576d commit 40c60a2

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
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: e16b097599ee73a909df7ffbbaaf30f25a7057e3
2+
refs/heads/master: bb594a03a14d872f6b190c644ecccfa41792cb30

trunk/src/comp/front/ast.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ type ty_param = ident;
2323
// Annotations added during successive passes.
2424
type ann = rec(uint id,
2525
middle::ty::t ty,
26-
option::t[vec[middle::ty::t]] tps,
27-
option::t[@ts_ann] ts);
26+
option::t[vec[middle::ty::t]] tps);
2827

2928
tag def {
3029
def_fn(def_id);

trunk/src/comp/front/parser.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,10 @@ fn new_parser(session::session sess,
147147
fn get_chpos() -> uint {ret rdr.get_chpos();}
148148

149149
fn get_ann() -> ast::ann {
150-
// TODO: Remove ty, tps, and ts. ty and tps should be unused
150+
// TODO: Remove ty and tps, which should be unused
151151
// by now.
152152
auto rv = rec(id=next_ann_var, ty=0u,
153-
tps=none[vec[middle::ty::t]],
154-
ts=none[@middle::tstate::ann::ts_ann]);
153+
tps=none[vec[middle::ty::t]]);
155154
next_ann_var += 1u;
156155
ret rv;
157156
}

trunk/src/comp/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ fn ann_to_monotype(ctxt cx, &node_type_table ntt, ast::ann a) -> t {
14981498
// Turns a type and optional type parameters into an annotation, using
14991499
// defaults for other fields.
15001500
fn mk_ann_type(uint node_id, t typ, option::t[vec[t]] tps) -> ast::ann {
1501-
ret rec(id=node_id, ty=typ, tps=tps, ts=none[@ts_ann]);
1501+
ret rec(id=node_id, ty=typ, tps=tps);
15021502
}
15031503

15041504
// Turns a type into an annotation, using defaults for other fields.

trunk/src/comp/util/common.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ fn item_to_str(&@ast::item i) -> str {
178178
auto out_ = mkstate(s.get_writer(), 80u);
179179
auto out = @rec(s=out_,
180180
comments=none[vec[front::lexer::cmnt]],
181-
mutable cur_cmnt=0u);
182-
181+
mutable cur_cmnt=0u,
182+
mode=mo_untyped);
183183
print_item(out, i);
184184
ret s.get_str();
185185
}
@@ -196,17 +196,6 @@ fn log_item_err(&@ast::item i) -> () {
196196
log_err(item_to_str(i));
197197
}
198198

199-
fn log_ann(&ast::ann a) -> () {
200-
alt (a) {
201-
case (ast::ann_none(_)) {
202-
log("ann_none");
203-
}
204-
case (ast::ann_type(_,_,_,_)) {
205-
log("ann_type");
206-
}
207-
}
208-
}
209-
210199
fn fun_to_str(&ast::_fn f, str name, vec[ast::ty_param] params) -> str {
211200
let str_writer s = string_writer();
212201
auto out_ = mkstate(s.get_writer(), 80u);

0 commit comments

Comments
 (0)