Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* ast/rust-path.h: add missing copy for node_id
: has_opening_scope_resolution (other.has_opening_scope_resolution),
locus (other.locus)
{
+ node_id = other.node_id;
segments.reserve (other.segments.size ());
for (const auto &e : other.segments)
segments.push_back (e->clone_type_path_segment ());
// Overloaded assignment operator with clone
TypePath &operator= (TypePath const &other)
{
+ node_id = other.node_id;
has_opening_scope_resolution = other.has_opening_scope_resolution;
locus = other.locus;