about summary refs log tree commit diff
path: root/src/comp/metadata/creader.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 22:37:22 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 23:17:34 -0800
commit04a2887f8791bb080b4e76a55949a7c1954dbb97 (patch)
treef072b2cc1e0b41270041a3a10a4fc313d3fa1a89 /src/comp/metadata/creader.rs
parentca7cfbe3d0251766217e5d4e559903e655e7549b (diff)
downloadrust-04a2887f8791bb080b4e76a55949a7c1954dbb97.tar.gz
rust-04a2887f8791bb080b4e76a55949a7c1954dbb97.zip
Remove '.' after nullary tags in patterns
Does what it says on the tin.

The next commit will remove support for this syntax.
Diffstat (limited to 'src/comp/metadata/creader.rs')
-rw-r--r--src/comp/metadata/creader.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs
index fd87b54a0a6..93a6f761306 100644
--- a/src/comp/metadata/creader.rs
+++ b/src/comp/metadata/creader.rs
@@ -68,7 +68,7 @@ fn visit_item(e: env, i: @ast::item) {
                 }
                 nn
               }
-              none. { i.ident }
+              none { i.ident }
             };
         let already_added = false;
         if vec::len(attr::find_attrs_by_name(i.attrs, "nolink")) == 0u {
@@ -84,7 +84,7 @@ fn visit_item(e: env, i: @ast::item) {
               some(linkarg) {
                 cstore::add_used_link_args(cstore, linkarg);
               }
-              none. {/* fallthrough */ }
+              none {/* fallthrough */ }
             }
         }
       }
@@ -96,7 +96,7 @@ fn visit_item(e: env, i: @ast::item) {
 fn list_file_metadata(sess: session::session, path: str, out: io::writer) {
     alt get_metadata_section(sess, path) {
       option::some(bytes) { decoder::list_crate_metadata(bytes, out); }
-      option::none. {
+      option::none {
         out.write_str("Could not find metadata in " + path + ".\n");
       }
     }
@@ -154,7 +154,7 @@ fn find_library_crate(sess: session::session, ident: ast::ident,
                   _ { ident }
                 }
               }
-              none. { ident }
+              none { ident }
             }
         };
 
@@ -239,7 +239,7 @@ fn load_library_crate(sess: session::session, span: span, ident: ast::ident,
 
     alt find_library_crate(sess, ident, metas) {
       some(t) { ret t; }
-      none. {
+      none {
         sess.span_fatal(span, #fmt["can't find crate for '%s'", ident]);
       }
     }