diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 15:47:32 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-13 15:47:32 +0800 |
commit | 6ee2c06c47a905b11ee5b674710df187126203bc (patch) | |
tree | 255f82f294ec703fe6b53e6413e4c1f449f5911e /gcc/rust/ast/rust-ast.h | |
parent | e21c9fe1657303605efeacd4890430e7d40c4c3c (diff) | |
download | gcc-6ee2c06c47a905b11ee5b674710df187126203bc.zip gcc-6ee2c06c47a905b11ee5b674710df187126203bc.tar.gz gcc-6ee2c06c47a905b11ee5b674710df187126203bc.tar.bz2 |
Attempt to fix array parsing errors
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index d23cb81..1ad0cf9 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -473,9 +473,9 @@ public: std::string as_string () const; // TODO: does this require visitor pattern as not polymorphic? - - // Maybe change to const-reference in future - SimplePath get_path () const { return path; } + + const SimplePath &get_path () const { return path; } + SimplePath &get_path () { return path; } // Call to parse attribute body to meta item syntax. void parse_attr_to_meta_item (); |