about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-05-07 15:30:57 -0700
committerBrian Anderson <banderson@mozilla.com>2013-05-07 15:30:57 -0700
commitd8ef723d490a8c98a4324a850a629e476011faf4 (patch)
tree75239d74e52d25fc0d132a7dfccc1dcbff95b631 /src
parentccc4c1a5e01e5bc7ea389511e906c4bb160783e8 (diff)
downloadrust-d8ef723d490a8c98a4324a850a629e476011faf4.tar.gz
rust-d8ef723d490a8c98a4324a850a629e476011faf4.zip
rustc: Replace Durable with 'static
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/typeck/astconv.rs28
-rw-r--r--src/librustc/middle/typeck/collect.rs4
-rw-r--r--src/librustc/middle/typeck/rscope.rs2
3 files changed, 17 insertions, 17 deletions
diff --git a/src/librustc/middle/typeck/astconv.rs b/src/librustc/middle/typeck/astconv.rs
index 7ef77646f52..0baad7e7b7a 100644
--- a/src/librustc/middle/typeck/astconv.rs
+++ b/src/librustc/middle/typeck/astconv.rs
@@ -101,7 +101,7 @@ pub fn get_region_reporting_err(
     }
 }
 
-pub fn ast_region_to_region<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ast_region_to_region<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     default_span: span,
@@ -126,7 +126,7 @@ pub fn ast_region_to_region<AC:AstConv,RS:region_scope + Copy + Durable>(
     get_region_reporting_err(self.tcx(), span, opt_lifetime, res)
 }
 
-fn ast_path_substs<AC:AstConv,RS:region_scope + Copy + Durable>(
+fn ast_path_substs<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     def_id: ast::def_id,
@@ -180,7 +180,7 @@ fn ast_path_substs<AC:AstConv,RS:region_scope + Copy + Durable>(
     substs {self_r:self_r, self_ty:self_ty, tps:tps}
 }
 
-pub fn ast_path_to_substs_and_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ast_path_to_substs_and_ty<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     did: ast::def_id,
@@ -197,7 +197,7 @@ pub fn ast_path_to_substs_and_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
     ty_param_substs_and_ty { substs: substs, ty: ty }
 }
 
-pub fn ast_path_to_trait_ref<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ast_path_to_trait_ref<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     trait_def_id: ast::def_id,
@@ -221,7 +221,7 @@ pub fn ast_path_to_trait_ref<AC:AstConv,RS:region_scope + Copy + Durable>(
 }
 
 
-pub fn ast_path_to_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ast_path_to_ty<AC:AstConv,RS:region_scope + Copy + 'static>(
         self: &AC,
         rscope: &RS,
         did: ast::def_id,
@@ -243,10 +243,10 @@ pub static NO_TPS: uint = 2;
 // Parses the programmer's textual representation of a type into our
 // internal notion of a type. `getter` is a function that returns the type
 // corresponding to a definition ID:
-pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + Durable>(
+pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + 'static>(
     self: &AC, rscope: &RS, ast_ty: @ast::Ty) -> ty::t {
 
-    fn ast_mt_to_mt<AC:AstConv, RS:region_scope + Copy + Durable>(
+    fn ast_mt_to_mt<AC:AstConv, RS:region_scope + Copy + 'static>(
         self: &AC, rscope: &RS, mt: &ast::mt) -> ty::mt {
 
         ty::mt {ty: ast_ty_to_ty(self, rscope, mt.ty), mutbl: mt.mutbl}
@@ -255,7 +255,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + Durable>(
     // Handle @, ~, and & being able to mean estrs and evecs.
     // If a_seq_ty is a str or a vec, make it an estr/evec.
     // Also handle first-class trait types.
-    fn mk_pointer<AC:AstConv,RS:region_scope + Copy + Durable>(
+    fn mk_pointer<AC:AstConv,RS:region_scope + Copy + 'static>(
         self: &AC,
         rscope: &RS,
         a_seq_ty: &ast::mt,
@@ -497,7 +497,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + Durable>(
 }
 
 pub fn ty_of_arg<AC:AstConv,
-                 RS:region_scope + Copy + Durable>(
+                 RS:region_scope + Copy + 'static>(
                  self: &AC,
                  rscope: &RS,
                  a: ast::arg,
@@ -549,7 +549,7 @@ struct SelfInfo {
     self_transform: ast::self_ty
 }
 
-pub fn ty_of_method<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ty_of_method<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     purity: ast::purity,
@@ -567,7 +567,7 @@ pub fn ty_of_method<AC:AstConv,RS:region_scope + Copy + Durable>(
     (a.get(), b)
 }
 
-pub fn ty_of_bare_fn<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ty_of_bare_fn<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     purity: ast::purity,
@@ -580,7 +580,7 @@ pub fn ty_of_bare_fn<AC:AstConv,RS:region_scope + Copy + Durable>(
     b
 }
 
-fn ty_of_method_or_bare_fn<AC:AstConv,RS:region_scope + Copy + Durable>(
+fn ty_of_method_or_bare_fn<AC:AstConv,RS:region_scope + Copy + 'static>(
     self: &AC,
     rscope: &RS,
     purity: ast::purity,
@@ -616,7 +616,7 @@ fn ty_of_method_or_bare_fn<AC:AstConv,RS:region_scope + Copy + Durable>(
                                 output: output_ty}
             });
 
-    fn transform_self_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
+    fn transform_self_ty<AC:AstConv,RS:region_scope + Copy + 'static>(
         self: &AC,
         rscope: &RS,
         self_info: &SelfInfo) -> Option<ty::t>
@@ -649,7 +649,7 @@ fn ty_of_method_or_bare_fn<AC:AstConv,RS:region_scope + Copy + Durable>(
     }
 }
 
-pub fn ty_of_closure<AC:AstConv,RS:region_scope + Copy + Durable>(
+pub fn ty_of_closure<AC:AstConv,RS:region_scope + Copy + 'static>(
         self: &AC,
         rscope: &RS,
         sigil: ast::Sigil,
diff --git a/src/librustc/middle/typeck/collect.rs b/src/librustc/middle/typeck/collect.rs
index 22850c16f94..13d1428c30a 100644
--- a/src/librustc/middle/typeck/collect.rs
+++ b/src/librustc/middle/typeck/collect.rs
@@ -116,7 +116,7 @@ pub fn collect_item_types(ccx: @mut CrateCtxt, crate: @ast::crate) {
 }
 
 impl CrateCtxt {
-    fn to_ty<RS:region_scope + Copy + Durable>(
+    fn to_ty<RS:region_scope + Copy + 'static>(
         &self, rs: &RS, ast_ty: @ast::Ty) -> ty::t
     {
         ast_ty_to_ty(self, rs, ast_ty)
@@ -1163,7 +1163,7 @@ pub fn ty_generics(ccx: &CrateCtxt,
          * enum consisting of a newtyped Ty or a region) to ty's
          * notion of ty param bounds, which can either be user-defined
          * traits, or one of the four built-in traits (formerly known
-         * as kinds): Const, Copy, Durable, and Send.
+         * as kinds): Const, Copy, and Send.
          */
 
         @ast_bounds.flat_map_to_vec(|b| {
diff --git a/src/librustc/middle/typeck/rscope.rs b/src/librustc/middle/typeck/rscope.rs
index 65f5b910f37..316792f688f 100644
--- a/src/librustc/middle/typeck/rscope.rs
+++ b/src/librustc/middle/typeck/rscope.rs
@@ -266,7 +266,7 @@ pub struct binding_rscope {
     region_param_names: RegionParamNames,
 }
 
-pub fn in_binding_rscope<RS:region_scope + Copy + Durable>(
+pub fn in_binding_rscope<RS:region_scope + Copy + 'static>(
         self: &RS,
         region_param_names: RegionParamNames)
      -> binding_rscope {