aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-01-18 17:57:22 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-01-20 09:59:22 +0000
commit12f7bd0fc4e9ab4e98869b5265aea6bacfb31d03 (patch)
treeaaff0986f81394b83e8536b68a18bcd48ecb9484 /gcc/rust/ast/rust-ast.h
parent6e2acd529fcfa43368f7ea8209cc5e6b88d2bd79 (diff)
downloadgcc-12f7bd0fc4e9ab4e98869b5265aea6bacfb31d03.zip
gcc-12f7bd0fc4e9ab4e98869b5265aea6bacfb31d03.tar.gz
gcc-12f7bd0fc4e9ab4e98869b5265aea6bacfb31d03.tar.bz2
Support struct initializers using Identifiers
This resolves each identifier for its respective field. It includes fixes for the TypeResolver to print errors instead of asserts where we loose decent debug info.
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h
index 941b2fe..34122bb 100644
--- a/gcc/rust/ast/rust-ast.h
+++ b/gcc/rust/ast/rust-ast.h
@@ -882,6 +882,8 @@ public:
virtual NodeId get_node_id () const { return node_id; }
+ virtual void set_node_id (NodeId id) { node_id = id; }
+
protected:
// Constructor
Expr (std::vector<Attribute> outer_attribs = std::vector<Attribute> ())