libsyntax: Remove @str
from the interner
This commit is contained in:
parent
7a80fa647a
commit
8b8419293c
4 changed files with 112 additions and 56 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue