There was a mismatch whether lifetime 'static is parsed as "static"
or "'static".
gcc/rust/ChangeLog:
* parse/rust-parse-impl.h (Parser::lifetime_from_token): Fix matched pattern.
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
location_t locus = tok->get_locus ();
std::string lifetime_ident = tok->get_str ();
- if (lifetime_ident == "'static")
+ if (lifetime_ident == "static")
{
return AST::Lifetime (AST::Lifetime::STATIC, "", locus);
}
- else if (lifetime_ident == "'_")
+ else if (lifetime_ident == "_")
{
return AST::Lifetime (AST::Lifetime::WILDCARD, "", locus);
}