Rename vec::len(var) to var.len()

This commit is contained in:
Youngmin Yoo
2013-05-14 18:52:12 +09:00
parent c30414f980
commit a2a8596c3d
58 changed files with 128 additions and 134 deletions

View File

@@ -351,7 +351,7 @@ pub fn expr_to_ident(cx: @ext_ctxt,
err_msg: &str) -> ast::ident {
match expr.node {
ast::expr_path(p) => {
if vec::len(p.types) > 0u || vec::len(p.idents) != 1u {
if p.types.len() > 0u || p.idents.len() != 1u {
cx.span_fatal(expr.span, err_msg);
}
return p.idents[0];