summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-01 22:08:59 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-01 23:25:33 -0700
commit9c173f17c0fb10a3923da890c1204e0a71d3c9c7 (patch)
treebe9eb6a7f717bd898bd5006dfebb1f0e92583b9b /src/comp/syntax/parse
parent1d3eb4911a227500c51858cdb830fe27cb5b9ca7 (diff)
Remove lots of estr code from rustc. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 763172c81fa..7be1d78d730 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -708,7 +708,7 @@ fn parse_lit(p: &parser) -> ast::lit {
           token::LIT_CHAR(c) { p.bump(); lit = ast::lit_char(c); }
           token::LIT_STR(s) {
             p.bump();
-            lit = ast::lit_str(p.get_str(s), ast::sk_unique);
+            lit = ast::lit_str(p.get_str(s));
           }
           token::LPAREN. {
             p.bump();
@@ -895,8 +895,7 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr {
             let sp = p.get_span();
             p.bump();
             let lit =
-                @{node: ast::lit_str(p.get_str(s),
-                                     ast::sk_unique),
+                @{node: ast::lit_str(p.get_str(s)),
                   span: sp};
             ex = ast::expr_lit(lit);
           }
@@ -1503,8 +1502,7 @@ fn parse_pat(p: &parser) -> @ast::pat {
             let sp = p.get_span();
             p.bump();
             let lit =
-                @{node: ast::lit_str(p.get_str(s),
-                                     ast::sk_unique),
+                @{node: ast::lit_str(p.get_str(s)),
                   span: sp};
             hi = lit.span.hi;
             pat = ast::pat_lit(lit);