Remove '.' after nullary tags in patterns

Does what it says on the tin.

The next commit will remove support for this syntax.
This commit is contained in:
Tim Chevalier 2012-01-18 22:37:22 -08:00
parent ca7cfbe3d0
commit 04a2887f87
96 changed files with 1410 additions and 1410 deletions

View file

@ -286,7 +286,7 @@ fn get_impls_for_mod(cdata: cmd, m_id: ast::node_id,
ebml::tagged_docs(mod_item, tag_mod_impl) {|doc|
let did = translate_def_id(cdata, parse_def_id(ebml::doc_data(doc)));
let item = lookup_item(did.node, data), nm = item_name(item);
if alt name { some(n) { n == nm } none. { true } } {
if alt name { some(n) { n == nm } none { true } } {
let base_tps = item_ty_param_count(doc);
result += [@{did: did, ident: nm,
methods: item_impl_methods(cdata, item, base_tps)}];
@ -393,7 +393,7 @@ fn get_attributes(md: ebml::doc) -> [ast::attribute] {
span: ast_util::dummy_sp()}];
};
}
option::none. { }
option::none { }
}
ret attrs;
}
@ -489,7 +489,7 @@ fn translate_def_id(cdata: cmd, did: ast::def_id) -> ast::def_id {
alt cdata.cnum_map.find(did.crate) {
option::some(n) { ret {crate: n, node: did.node}; }
option::none. { fail "didn't find a crate in the cnum_map"; }
option::none { fail "didn't find a crate in the cnum_map"; }
}
}