aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <phil@nebuloninc.com>2020-05-16 23:03:39 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 19:13:35 +0000
commitd02f55c38818dba81934c4cb6806c32a3283fb0f (patch)
tree31179100d4512d0f70a7a2f3e6aedccc164be6cc /gcc
parentb3c690081ff60998abcbfaa9cfc6bf1b0f9c949f (diff)
downloadgcc-d02f55c38818dba81934c4cb6806c32a3283fb0f.zip
gcc-d02f55c38818dba81934c4cb6806c32a3283fb0f.tar.gz
gcc-d02f55c38818dba81934c4cb6806c32a3283fb0f.tar.bz2
Need public to access locus and param name in FunctionParam
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-item.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h
index 45f5842..cfcb5ee 100644
--- a/gcc/rust/ast/rust-item.h
+++ b/gcc/rust/ast/rust-item.h
@@ -496,7 +496,7 @@ public:
// A function parameter
struct FunctionParam
{
-private:
+public:
// Pattern* param_name;
::std::unique_ptr<Pattern> param_name;
// Type type;
@@ -504,7 +504,6 @@ private:
Location locus;
-public:
FunctionParam (::std::unique_ptr<Pattern> param_name,
::std::unique_ptr<Type> param_type, Location locus)
: param_name (::std::move (param_name)), type (::std::move (param_type)),