aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-02-17 16:14:01 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-02-18 09:08:07 +0100
commitef06769781a76eaa0de6fb500bebb8473e549f7e (patch)
tree3665f6165d76dc61daeb881327700f82308e4754 /gcc/rust/resolve/rust-ast-resolve.cc
parent9e524a7f5a5a7abd7aaf3891ea4eca6f0f84fd36 (diff)
downloadgcc-ef06769781a76eaa0de6fb500bebb8473e549f7e.zip
gcc-ef06769781a76eaa0de6fb500bebb8473e549f7e.tar.gz
gcc-ef06769781a76eaa0de6fb500bebb8473e549f7e.tar.bz2
path-id: Add location info on path identifier
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve.cc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index 5ac076a..3fb8b41 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -26,7 +26,7 @@
#define MKBUILTIN_TYPE(_X, _R, _TY) \
do \
{ \
- AST::PathIdentSegment seg (_X); \
+ AST::PathIdentSegment seg (_X, Linemap::predeclared_location ()); \
auto typePath = ::std::unique_ptr<AST::TypePathSegment> ( \
new AST::TypePathSegment (::std::move (seg), false, \
Linemap::predeclared_location ())); \