Skip to content

Commit cd071e6

Browse files
committed
---
yaml --- r: 41311 b: refs/heads/snap-stage3 c: bae4821 h: refs/heads/master i: 41309: 767caa5 41307: 6c310ed 41303: 6213db5 41295: e59135d 41279: 888bcfb v: v3
1 parent 11e571a commit cd071e6

File tree

17 files changed

+383
-464
lines changed

17 files changed

+383
-464
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c25703ccb860e039aedd9454d38f5c0dc7635a77
4+
refs/heads/snap-stage3: bae482185173d11d9aae2497ba3764947f196675
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/typeck/astconv.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ pub trait ast_conv {
8181
fn ty_infer(span: span) -> ty::t;
8282
}
8383

84-
fn get_region_reporting_err(tcx: ty::ctxt,
85-
span: span,
86-
res: Result<ty::Region, ~str>) -> ty::Region {
84+
pub fn get_region_reporting_err(tcx: ty::ctxt,
85+
span: span,
86+
res: Result<ty::Region, ~str>)
87+
-> ty::Region {
8788

8889
match res {
8990
result::Ok(r) => r,
@@ -94,7 +95,7 @@ fn get_region_reporting_err(tcx: ty::ctxt,
9495
}
9596
}
9697

97-
fn ast_region_to_region<AC: ast_conv, RS: region_scope Copy Durable>(
98+
pub fn ast_region_to_region<AC: ast_conv, RS: region_scope Copy Durable>(
9899
self: AC, rscope: RS, span: span, a_r: @ast::region) -> ty::Region {
99100

100101
let res = match a_r.node {
@@ -107,7 +108,7 @@ fn ast_region_to_region<AC: ast_conv, RS: region_scope Copy Durable>(
107108
get_region_reporting_err(self.tcx(), span, res)
108109
}
109110

110-
fn ast_path_to_substs_and_ty<AC: ast_conv, RS: region_scope Copy Durable>(
111+
pub fn ast_path_to_substs_and_ty<AC: ast_conv, RS: region_scope Copy Durable>(
111112
self: AC, rscope: RS, did: ast::def_id,
112113
path: @ast::path) -> ty_param_substs_and_ty {
113114

@@ -174,13 +175,13 @@ pub fn ast_path_to_ty<AC: ast_conv, RS: region_scope Copy Durable>(
174175
return {substs: substs, ty: ty};
175176
}
176177

177-
const NO_REGIONS: uint = 1;
178-
const NO_TPS: uint = 2;
178+
pub const NO_REGIONS: uint = 1;
179+
pub const NO_TPS: uint = 2;
179180

180181
// Parses the programmer's textual representation of a type into our
181182
// internal notion of a type. `getter` is a function that returns the type
182183
// corresponding to a definition ID:
183-
fn ast_ty_to_ty<AC: ast_conv, RS: region_scope Copy Durable>(
184+
pub fn ast_ty_to_ty<AC: ast_conv, RS: region_scope Copy Durable>(
184185
self: AC, rscope: RS, &&ast_ty: @ast::Ty) -> ty::t {
185186

186187
fn ast_mt_to_mt<AC: ast_conv, RS: region_scope Copy Durable>(
@@ -405,7 +406,7 @@ fn ast_ty_to_ty<AC: ast_conv, RS: region_scope Copy Durable>(
405406
return typ;
406407
}
407408

408-
fn ty_of_arg<AC: ast_conv, RS: region_scope Copy Durable>(
409+
pub fn ty_of_arg<AC: ast_conv, RS: region_scope Copy Durable>(
409410
self: AC, rscope: RS, a: ast::arg,
410411
expected_ty: Option<ty::arg>) -> ty::arg {
411412

@@ -451,10 +452,10 @@ fn ty_of_arg<AC: ast_conv, RS: region_scope Copy Durable>(
451452
arg {mode: mode, ty: ty}
452453
}
453454

454-
type expected_tys = Option<{inputs: ~[ty::arg],
455-
output: ty::t}>;
455+
pub type expected_tys = Option<{inputs: ~[ty::arg],
456+
output: ty::t}>;
456457

457-
fn ty_of_fn_decl<AC: ast_conv, RS: region_scope Copy Durable>(
458+
pub fn ty_of_fn_decl<AC: ast_conv, RS: region_scope Copy Durable>(
458459
self: AC, rscope: RS,
459460
ast_proto: ast::Proto,
460461
purity: ast::purity,
@@ -463,8 +464,7 @@ fn ty_of_fn_decl<AC: ast_conv, RS: region_scope Copy Durable>(
463464
opt_region: Option<@ast::region>,
464465
decl: ast::fn_decl,
465466
expected_tys: expected_tys,
466-
span: span) -> ty::FnTy
467-
{
467+
span: span) -> ty::FnTy {
468468
debug!("ty_of_fn_decl");
469469
do indent {
470470
// resolve the function bound region in the original region

0 commit comments

Comments
 (0)