diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-15 11:01:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 11:01:12 +0000 |
commit | 815a57351a33491e534cc1b6c6ddfa17eaf2b500 (patch) | |
tree | 292bb3744e1908b39e0bfbfdb1e54aab3e2d2760 /gcc/rust/ast/rust-ast.h | |
parent | 009337f5935882799fe520e98f0b233403254e41 (diff) | |
parent | 22977337faf0c1a80af36b00249aed30fa586f2d (diff) | |
download | gcc-815a57351a33491e534cc1b6c6ddfa17eaf2b500.zip gcc-815a57351a33491e534cc1b6c6ddfa17eaf2b500.tar.gz gcc-815a57351a33491e534cc1b6c6ddfa17eaf2b500.tar.bz2 |
Merge #1631
1631: Ast dump where clause r=CohenArthur a=jdupak
Adds dump of the where clause and recursively needed nodes.
Adds visitor compatibility layer for general references except for unique pointers - needed for lifetimes. The enable is necessary to coexist with the unique_ptr overload.
Depends on #1624 and will be rebased when it is merged.
Co-authored-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index e0e10dc..fc7af58e 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1310,6 +1310,8 @@ public: // Returns whether the lifetime param has any lifetime bounds. bool has_lifetime_bounds () const { return !lifetime_bounds.empty (); } + std::vector<Lifetime> &get_lifetime_bounds () { return lifetime_bounds; } + // Returns whether the lifetime param has an outer attribute. bool has_outer_attribute () const { return !outer_attr.is_empty (); } |