diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-14 12:07:23 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-14 18:19:08 -0700 |
| commit | 3864d6d845f6bf9493698606bba2220daede4738 (patch) | |
| tree | 206d35d98526bec1424c87f4c77af141e99bec4b /src/rustc/syntax/parse | |
| parent | 383a80199351c6b9f9f4834242231c8586fb2ab6 (diff) | |
| download | rust-3864d6d845f6bf9493698606bba2220daede4738.tar.gz rust-3864d6d845f6bf9493698606bba2220daede4738.zip | |
std: Rename the hashmap constructors to conform to new standards
Instead of using the new_ prefix just name them after their type
Diffstat (limited to 'src/rustc/syntax/parse')
| -rw-r--r-- | src/rustc/syntax/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/syntax/parse/parser.rs b/src/rustc/syntax/parse/parser.rs index 4beefe21632..8d3087a61a4 100644 --- a/src/rustc/syntax/parse/parser.rs +++ b/src/rustc/syntax/parse/parser.rs @@ -1,5 +1,5 @@ import either::{left, right}; -import std::map::{hashmap, new_str_hash}; +import std::map::{hashmap, str_hash}; import token::can_begin_expr; import codemap::{span,fss_none}; import util::interner; @@ -143,7 +143,7 @@ fn new_parser(sess: parse_sess, cfg: ast::crate_cfg, rdr: reader, // because, if used at the start of a line, they will cause the line to be // interpreted as a specific kind of statement, which would be confusing. fn bad_expr_word_table() -> hashmap<str, ()> { - let words = new_str_hash(); + let words = str_hash(); for word in ["alt", "assert", "be", "break", "check", "claim", "class", "const", "cont", "copy", "crust", "do", "else", "enum", "export", "fail", "fn", "for", "if", "iface", |
