]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: ast-builder: Make location public
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 22 Apr 2025 20:18:01 +0000 (22:18 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:47 +0000 (16:36 +0200)
gcc/rust/ChangeLog:

* ast/rust-ast-builder.h: Put `loc` member in public.

gcc/rust/ast/rust-ast-builder.h

index 36c3bc0ce901f9bf8f9ce11bf017ed20fc4bf9ef..fa3c95ce4fdf9a68498c3a6f14955a66b21fde46 100644 (file)
@@ -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"};