aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-13 15:47:32 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-13 15:47:32 +0800
commit6ee2c06c47a905b11ee5b674710df187126203bc (patch)
tree255f82f294ec703fe6b53e6413e4c1f449f5911e /gcc/rust/ast/rust-ast.h
parente21c9fe1657303605efeacd4890430e7d40c4c3c (diff)
downloadgcc-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.h6
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 ();