diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-31 16:42:33 -0800 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-02 01:44:49 +1100 |
| commit | 8b8419293cb69d208a0d4f3a89dd01b0d394a6c6 (patch) | |
| tree | cef113f731bbd16c556f52242191b744396a7e42 /src/libsyntax/parse/parser.rs | |
| parent | 7a80fa647ad7f634c9626e7fed1caa618e1fd6cc (diff) | |
| download | rust-8b8419293cb69d208a0d4f3a89dd01b0d394a6c6.tar.gz rust-8b8419293cb69d208a0d4f3a89dd01b0d394a6c6.zip | |
libsyntax: Remove `@str` from the interner
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 86913711801..dc16f32b872 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3979,8 +3979,9 @@ impl Parser { fields.push(self.parse_struct_decl_field()); } if fields.len() == 0 { + let string = get_ident_interner().get(class_name.name); self.fatal(format!("Unit-like struct definition should be written as `struct {};`", - get_ident_interner().get(class_name.name))); + string.as_slice())); } self.bump(); } else if self.token == token::LPAREN { |
