Add explicit default copy/move constructor to identifiers.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Add default constructors.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
: ident (ident), node_id (Analysis::Mappings::get ()->get_next_node_id ())
{}
+ Identifier (const Identifier &) = default;
+ Identifier (Identifier &&) = default;
+ Identifier &operator= (const Identifier &) = default;
+ Identifier &operator= (Identifier &&) = default;
+
NodeId get_node_id () const { return node_id; }
const std::string &as_string () const { return ident; }