Skip to content

Commit 22a683a

Browse files
committed
---
yaml --- r: 2958 b: refs/heads/master c: a4ca75e h: refs/heads/master v: v3
1 parent f9b57bf commit 22a683a

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
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: ab69c4a98f630c9f82d5cb21e336ff3620b76d45
2+
refs/heads/master: a4ca75e6afb93386c4ccb5f0aa7121bfa9fedb58

trunk/src/comp/middle/ty.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,25 +1542,25 @@ fn eq_ty(&t a, &t b) -> bool { ret a == b; }
15421542

15431543
// Type lookups
15441544

1545-
fn ann_to_ty_param_substs_opt_and_ty(&ty_ctxt tcx, &ast::ann ann)
1545+
fn ann_to_ty_param_substs_opt_and_ty(&ctxt cx, &ast::ann ann)
15461546
-> ty_param_substs_opt_and_ty {
15471547

15481548
// Pull out the node type table.
1549-
alt ({tcx.node_types.(ann.id)}) {
1549+
alt ({cx.node_types.(ann.id)}) {
15501550
case (none) {
1551-
tcx.sess.bug("ann_to_ty_param_substs_opt_and_ty() called on an " +
1552-
"untyped node");
1551+
cx.sess.bug("ann_to_ty_param_substs_opt_and_ty() called on an " +
1552+
"untyped node");
15531553
}
15541554
case (some(?tpot)) { ret tpot; }
15551555
}
15561556
}
15571557

1558-
fn ann_to_type(&ty_ctxt tcx, &ast::ann ann) -> t {
1559-
ret ann_to_ty_param_substs_opt_and_ty(tcx, ann)._1;
1558+
fn ann_to_type(&ctxt cx, &ast::ann ann) -> t {
1559+
ret ann_to_ty_param_substs_opt_and_ty(cx, ann)._1;
15601560
}
15611561

1562-
fn ann_to_type_params(&ty_ctxt tcx, &ast::ann ann) -> vec[t] {
1563-
alt (ann_to_ty_param_substs_opt_and_ty(tcx, ann)._0) {
1562+
fn ann_to_type_params(&ctxt cx, &ast::ann ann) -> vec[t] {
1563+
alt (ann_to_ty_param_substs_opt_and_ty(cx, ann)._0) {
15641564
case (none) {
15651565
let vec[t] result = [];
15661566
ret result;
@@ -1569,8 +1569,8 @@ fn ann_to_type_params(&ty_ctxt tcx, &ast::ann ann) -> vec[t] {
15691569
}
15701570
}
15711571

1572-
fn ann_has_type_params(&ty_ctxt tcx, &ast::ann ann) -> bool {
1573-
auto tpt = ann_to_ty_param_substs_opt_and_ty(tcx, ann);
1572+
fn ann_has_type_params(&ctxt cx, &ast::ann ann) -> bool {
1573+
auto tpt = ann_to_ty_param_substs_opt_and_ty(cx, ann);
15741574
ret !option::is_none[vec[t]](tpt._0);
15751575
}
15761576

@@ -1765,8 +1765,8 @@ fn expr_ty_params_and_ty(&ctxt cx, &@ast::expr expr)
17651765
ann_to_type(cx, a));
17661766
}
17671767

1768-
fn expr_has_ty_params(&ty_ctxt tcx, &@ast::expr expr) -> bool {
1769-
ret ann_has_type_params(tcx, expr_ann(expr));
1768+
fn expr_has_ty_params(&ctxt cx, &@ast::expr expr) -> bool {
1769+
ret ann_has_type_params(cx, expr_ann(expr));
17701770
}
17711771

17721772
fn decl_local_ty(&ctxt cx, &@ast::decl d) -> t {
@@ -2886,19 +2886,19 @@ fn lookup_item_type(ctxt cx, ast::def_id did) -> ty_param_count_and_ty {
28862886
}
28872887
}
28882888

2889-
fn ret_ty_of_fn_ty(ty_ctxt tcx, t a_ty) -> t {
2890-
alt (ty::struct(tcx, a_ty)) {
2889+
fn ret_ty_of_fn_ty(ctxt cx, t a_ty) -> t {
2890+
alt (ty::struct(cx, a_ty)) {
28912891
case (ty::ty_fn(_, _, ?ret_ty, _)) {
28922892
ret ret_ty;
28932893
}
28942894
case (_) {
2895-
tcx.sess.bug("ret_ty_of_fn_ty() called on non-function type");
2895+
cx.sess.bug("ret_ty_of_fn_ty() called on non-function type");
28962896
}
28972897
}
28982898
}
28992899

2900-
fn ret_ty_of_fn(ty_ctxt tcx, ast::ann ann) -> t {
2901-
ret ret_ty_of_fn_ty(tcx, ann_to_type(tcx, ann));
2900+
fn ret_ty_of_fn(ctxt cx, ast::ann ann) -> t {
2901+
ret ret_ty_of_fn_ty(cx, ann_to_type(cx, ann));
29022902
}
29032903

29042904
// Local Variables:

0 commit comments

Comments
 (0)