mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
gccrs: Remove duplicated error message.
The expect token function already emits an error message for malformed struct. gcc/rust/ChangeLog: * parse/rust-parse-impl.hxx: Remove additional error message. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
committed by
Arthur Cohen
parent
32e2bdb3a1
commit
515d64fa4b
@@ -2979,10 +2979,6 @@ Parser<ManagedTokenSource>::parse_struct (AST::Visibility vis,
|
||||
const_TokenPtr name_tok = expect_token (IDENTIFIER);
|
||||
if (name_tok == nullptr)
|
||||
{
|
||||
Error error (lexer.peek_token ()->get_locus (),
|
||||
"could not parse struct or tuple struct identifier");
|
||||
add_error (std::move (error));
|
||||
|
||||
// skip after somewhere?
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user