]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: hir: Mark AttrVec::get_outer_attrs as override
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 6 Nov 2024 14:15:02 +0000 (15:15 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:32:56 +0000 (12:32 +0100)
gcc/rust/ChangeLog:

* hir/tree/rust-hir.h: Add override qualifier to overriden method.

gcc/rust/hir/tree/rust-hir.h

index 8ce5cf4d10259d4b0f464a4b465e8525887e2407..8544d0d5f09debf5fa6f77f376601030fbef2159 100644 (file)
@@ -673,7 +673,7 @@ public:
   // Returns whether the lifetime param has an outer attribute.
   bool has_outer_attribute () const override { return outer_attrs.size () > 1; }
 
-  AST::AttrVec &get_outer_attrs () { return outer_attrs; }
+  AST::AttrVec &get_outer_attrs () override { return outer_attrs; }
 
   // Returns whether the lifetime param is in an error state.
   bool is_error () const { return lifetime.is_error (); }