]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix semicolon after some namespace
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 29 Jul 2025 15:33:18 +0000 (17:33 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:59 +0000 (16:36 +0200)
Remove namespace comment after classes and structs.

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-fact-collector.h: Remove spurious
comment.
* checks/errors/rust-feature.cc: Likewise.
* util/optional.h: Likewise.
* expand/rust-token-tree-desugar.cc (TokenTreeDesugar::visit): Remove
semicolons on namespace.
* expand/rust-token-tree-desugar.h: Likewise.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h
gcc/rust/checks/errors/rust-feature.cc
gcc/rust/expand/rust-token-tree-desugar.cc
gcc/rust/expand/rust-token-tree-desugar.h
gcc/rust/util/optional.h

index e3a1247206d6fa561d8d360be1e227298dbc5020..e65b41662b6ecf507fb2912103ec56c23f58d0b1 100644 (file)
@@ -883,7 +883,7 @@ protected: // Subset helpers.
 
     return region_end;
   }
-}; // namespace BIR
+};
 
 } // namespace BIR
 } // namespace Rust
index 441a1b288fdc6c591072039cb2d03738db340887..071d3f8c0d9736dcf5004b3f18c894e7381ed86e 100644 (file)
@@ -84,7 +84,7 @@ const std::map<std::string, Feature::Name> Feature::name_hash_map = {
   {"exclusive_range_pattern", Feature::Name::EXCLUSIVE_RANGE_PATTERN},
   {"prelude_import", Feature::Name::PRELUDE_IMPORT},
   {"min_specialization", Feature::Name::MIN_SPECIALIZATION},
-}; // namespace Rust
+};
 
 tl::optional<Feature::Name>
 Feature::as_name (const std::string &name)
index 3b471805924a8baa13ed7c9e1db596af7e37c200..aa20d50690f78953ba7ef0f62315ee4bf5f790d0 100644 (file)
@@ -68,5 +68,5 @@ TokenTreeDesugar::visit (Token &tts)
     }
 }
 
-}; // namespace AST
-}; // namespace Rust
+} // namespace AST
+} // namespace Rust
index ccba53b1102f476bb6e9abae9966b595612e8acb..da9d732f8d8c4a535dc54dc451014193f5be2fe2 100644 (file)
@@ -49,7 +49,7 @@ private:
   virtual void visit (Token &tts) override;
 };
 
-}; // namespace AST
-}; // namespace Rust
+} // namespace AST
+} // namespace Rust
 
 #endif //! RUST_TOKEN_TREE_DESUGAR_H
index 2c59459cb940810114fe834e5e61b6bbd8c12b5c..9d2cd97cbedcd2589ae5a6f736dc84193d332251 100644 (file)
@@ -1364,7 +1364,7 @@ public:
       this->m_has_value = false;
     }
   }
-}; // namespace tl
+};
 
 /// Compares two optional objects
 template <class T, class U>
@@ -2110,7 +2110,7 @@ public:
 
 private:
   T *m_value;
-}; // namespace tl
+};
 
 
 
@@ -2128,4 +2128,4 @@ template <class T> struct hash<tl::optional<T>> {
 };
 } // namespace std
 
-#endif
\ No newline at end of file
+#endif