libsyntax: Remove @str from the interner

This commit is contained in:
Patrick Walton 2014-01-31 16:42:33 -08:00 committed by Huon Wilson
parent 7a80fa647a
commit 8b8419293c
4 changed files with 112 additions and 56 deletions

View file

@ -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 {