aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-10-20 17:59:27 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-10-20 17:59:27 +0100
commitd396692534019f1e80b821c9e483164f302679bf (patch)
treee8a2e8751695106dd6f67ee40447ee8a514e398c /gcc/rust/ast
parent8e09dfb538db9af6eb312ecd0a5a4e5931db201e (diff)
downloadgcc-d396692534019f1e80b821c9e483164f302679bf.zip
gcc-d396692534019f1e80b821c9e483164f302679bf.tar.gz
gcc-d396692534019f1e80b821c9e483164f302679bf.tar.bz2
Add missing hir lowering to function type-path segments
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r--gcc/rust/ast/rust-path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h
index 80ff960..4643054 100644
--- a/gcc/rust/ast/rust-path.h
+++ b/gcc/rust/ast/rust-path.h
@@ -898,6 +898,8 @@ public:
rust_assert (has_return_type ());
return return_type;
}
+
+ Location get_locus () const { return locus; }
};
// Segment used in type path with a function argument