[gcc r14-7812] gccrs: Replace default argument with UNDEF_LOCATION

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:00:40 GMT 2024


https://gcc.gnu.org/g:7e74b450d24074519c8c93dc55c507931b329c5a

commit r14-7812-g7e74b450d24074519c8c93dc55c507931b329c5a
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date:   Tue Jul 18 15:55:51 2023 -0400

    gccrs: Replace default argument with UNDEF_LOCATION
    
    gcc/rust/ChangeLog:
    
            * ast/rust-ast-collector.h
            (TokenCollector::visit):
            Replace default argument with UNDEF_LOCATION.
    
    Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

Diff:
---
 gcc/rust/ast/rust-ast-collector.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/rust/ast/rust-ast-collector.h b/gcc/rust/ast/rust-ast-collector.h
index 0001c5bbef8..792f8bed723 100644
--- a/gcc/rust/ast/rust-ast-collector.h
+++ b/gcc/rust/ast/rust-ast-collector.h
@@ -160,7 +160,7 @@ public:
   void visit (Visitable &v);
   void visit (LoopLabel &label);
 
-  void visit (Literal &lit, Location locus = {});
+  void visit (Literal &lit, Location locus = UNDEF_LOCATION);
 
   void visit (FunctionParam &param);
   void visit (Attribute &attrib);


More information about the Gcc-cvs mailing list