gccrs: Ease some constraints on derive definition
Member function is_derive was overly constrained, the attribute changes when we parse it's meta items and it no longer contains a tokenstream while staying a derive. gcc/rust/ChangeLog: * ast/rust-ast.cc (Attribute::is_derive): Remove tokenstream condition. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
parent
90ee631428
commit
872ea1ab96
1 changed files with 1 additions and 4 deletions
|
@ -84,10 +84,7 @@ Attribute::as_string () const
|
|||
bool
|
||||
Attribute::is_derive () const
|
||||
{
|
||||
return has_attr_input ()
|
||||
&& get_attr_input ().get_attr_input_type ()
|
||||
== AST::AttrInput::TOKEN_TREE
|
||||
&& get_path () == "derive";
|
||||
return has_attr_input () && get_path () == "derive";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue