diff options
| author | Philip Herron <philip.herron@embecosm.com> | 2022-10-20 17:59:27 +0100 |
|---|---|---|
| committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:40 +0100 |
| commit | 875f722de5ead6e2e256bb62e13feb150617c381 (patch) | |
| tree | 673fa47f271a01968a9a538cf9badaf8351a6b35 /gcc/rust/ast | |
| parent | 12e94515f894be4a178c1a03ce42a23701515ee0 (diff) | |
| download | gcc-875f722de5ead6e2e256bb62e13feb150617c381.zip gcc-875f722de5ead6e2e256bb62e13feb150617c381.tar.gz gcc-875f722de5ead6e2e256bb62e13feb150617c381.tar.bz2 | |
gccrs: Add missing hir lowering to function type-path segments
gcc/rust/ChangeLog:
* Make-lang.in: Compile rust-ast-lower-type.cc.
* ast/rust-path.h: Add `get_locus` method to `TypePathFunction`.
* hir/rust-ast-lower-base.cc (ASTLowerTypePath::visit): Move implementation to
rust-ast-lower-type.cc.
(ASTLowerQualifiedPathInType::visit): Likewise.
(ASTLoweringType::visit): Likewise.
* hir/rust-ast-lower-type.h: Move implementations to source file.
* hir/tree/rust-hir-path.h: Likewise.
* hir/rust-ast-lower-type.cc: New file.
Diffstat (limited to 'gcc/rust/ast')
| -rw-r--r-- | gcc/rust/ast/rust-path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 9683ad6..b5c9c3a 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 |
