aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-21 10:00:20 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-21 10:00:20 +0800
commit30dd20c0098948de74f6a18978e78e2950782975 (patch)
tree1e3130f51900fb85b63d4f4f0e22d17ca1837770 /gcc/rust/resolve/rust-ast-resolve.cc
parentaa283484a3dffedc404653af18f9413775cbc3df (diff)
parent671cefe61254bedd4a9f526f8912fe68368cbe72 (diff)
downloadgcc-30dd20c0098948de74f6a18978e78e2950782975.zip
gcc-30dd20c0098948de74f6a18978e78e2950782975.tar.gz
gcc-30dd20c0098948de74f6a18978e78e2950782975.tar.bz2
Merge branch 'master' of https://github.com/redbrain/gccrs
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve.cc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index 57bd0f3..ba4ee21 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -168,6 +168,7 @@ Resolver::insert_resolved_name (NodeId refId, NodeId defId)
rust_assert (it == resolved_names.end ());
resolved_names[refId] = defId;
+ get_name_scope ().peek ()->append_reference_for_def (defId, refId);
}
bool
@@ -188,6 +189,7 @@ Resolver::insert_resolved_type (NodeId refId, NodeId defId)
rust_assert (it == resolved_types.end ());
resolved_types[refId] = defId;
+ get_type_scope ().peek ()->append_reference_for_def (defId, refId);
}
bool