From fe9d07dda6e884df9873376c85941cc766dbd1dc Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 14 Aug 2012 15:27:06 -0700 Subject: rustc: "as Trait" can now be written "as @Trait". There is also code for ~Trait and &Trait, but these are currently (incorrectly) synonyms for "as @Trait" and "as &Trait". --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index f894f6fae82..642cdaa8fab 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -263,7 +263,7 @@ class parser { self.sess.span_diagnostic.span_warn(copy self.span, m) } pure fn get_str(i: token::str_num) -> @~str { - (*self.reader.interner()).get(i) + self.reader.interner().get(i) } fn get_id() -> node_id { next_node_id(self.sess) } -- cgit 1.4.1-3-g733a5