Some function lacked the override specifier, this made the compiler emit
several warning.
gcc/rust/ChangeLog:
* ast/rust-ast.h: Add override specifier.
* ast/rust-item.h: Likewise.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
}
NodeId get_node_id () const { return node_id; }
- location_t get_locus () const { return locus; }
+ location_t get_locus () const override { return locus; }
};
/* Abstract base class for items used within an inherent impl block (the impl
std::string as_string () const override;
- location_t get_locus () const { return locus; }
+ location_t get_locus () const override { return locus; }
void accept_vis (ASTVisitor &vis) override;