@@ -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