https://gcc.gnu.org/g:efdbea3b2bb8f4d7060c0b87a2f8500bd771fd5e
commit r16-2863-gefdbea3b2bb8f4d7060c0b87a2f8500bd771fd5e Author: Arthur Cohen <arthur.co...@embecosm.com> Date: Tue Apr 22 22:18:01 2025 +0200 gccrs: ast-builder: Make location public gcc/rust/ChangeLog: * ast/rust-ast-builder.h: Put `loc` member in public. Diff: --- gcc/rust/ast/rust-ast-builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/ast/rust-ast-builder.h b/gcc/rust/ast/rust-ast-builder.h index 36c3bc0ce901..fa3c95ce4fdf 100644 --- a/gcc/rust/ast/rust-ast-builder.h +++ b/gcc/rust/ast/rust-ast-builder.h @@ -331,10 +331,10 @@ public: static GenericArgs new_generic_args (GenericArgs &args); -private: /* Location of the generated AST nodes */ location_t loc; +private: /* Some constexpr helpers for some of the builders */ static constexpr std::initializer_list<const char *> discriminant_value_path = {"core", "intrinsics", "discriminant_value"};