about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-04-29 14:23:22 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-04-29 14:38:39 -0700
commitd8024e2c3b89b3ad517b76a5495f2bcb2d6a7690 (patch)
tree3383e1b0c3e65d7d43819fcd22b459abb59722cd
parentedc11a9f09060b355010b8cc71da45c4f35eadf0 (diff)
downloadrust-d8024e2c3b89b3ad517b76a5495f2bcb2d6a7690.tar.gz
rust-d8024e2c3b89b3ad517b76a5495f2bcb2d6a7690.zip
rustc: Change At to Managed and Uniq to Owned
-rw-r--r--src/librustc/middle/typeck/check/_match.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/librustc/middle/typeck/check/_match.rs b/src/librustc/middle/typeck/check/_match.rs
index 7d2fd51cefe..e73cf440d40 100644
--- a/src/librustc/middle/typeck/check/_match.rs
+++ b/src/librustc/middle/typeck/check/_match.rs
@@ -524,10 +524,10 @@ pub fn check_pat(pcx: &pat_ctxt, pat: @ast::pat, expected: ty::t) {
         }
       }
       ast::pat_box(inner) => {
-          check_pointer_pat(pcx, At, inner, pat.id, pat.span, expected);
+          check_pointer_pat(pcx, Managed, inner, pat.id, pat.span, expected);
       }
       ast::pat_uniq(inner) => {
-          check_pointer_pat(pcx, Uniq, inner, pat.id, pat.span, expected);
+          check_pointer_pat(pcx, Owned, inner, pat.id, pat.span, expected);
       }
       ast::pat_region(inner) => {
           check_pointer_pat(pcx, Borrowed, inner, pat.id, pat.span, expected);
@@ -609,10 +609,10 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
         fcx.write_ty(pat_id, expected);
     };
     match structure_of(fcx, span, expected) {
-        ty::ty_box(e_inner) if pointer_kind == At => {
+        ty::ty_box(e_inner) if pointer_kind == Managed => {
             check_inner(e_inner);
         }
-        ty::ty_uniq(e_inner) if pointer_kind == Uniq => {
+        ty::ty_uniq(e_inner) if pointer_kind == Owned => {
             check_inner(e_inner);
         }
         ty::ty_rptr(_, e_inner) if pointer_kind == Borrowed => {
@@ -626,8 +626,8 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
                     fmt!("mismatched types: expected `%s` but found %s",
                          resolved_expected, actual)},
                                                fmt!("an %s pattern", match pointer_kind {
-                                                   At => "@-box",
-                                                   Uniq => "~-box",
+                                                   Managed => "@-box",
+                                                   Owned => "~-box",
                                                    Borrowed => "&-pointer"
                                                }),
                     None);
@@ -637,5 +637,5 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
 }
 
 #[deriving(Eq)]
-enum PointerKind { At, Uniq, Borrowed }
+enum PointerKind { Managed, Owned, Borrowed }