From d02f55c38818dba81934c4cb6806c32a3283fb0f Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sat, 16 May 2020 23:03:39 +0100 Subject: Need public to access locus and param name in FunctionParam --- gcc/rust/ast/rust-item.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc') 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 param_name; // Type type; @@ -504,7 +504,6 @@ private: Location locus; -public: FunctionParam (::std::unique_ptr param_name, ::std::unique_ptr param_type, Location locus) : param_name (::std::move (param_name)), type (::std::move (param_type)), -- cgit v1.1