]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Basic formatting/comment fixes
authorOwen Avery <powerboat9.gamer@gmail.com>
Wed, 9 Aug 2023 16:55:37 +0000 (12:55 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:29 +0000 (19:00 +0100)
gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc: Adjust formatting.
* checks/errors/rust-feature-gate.cc: Add trailing newline.
* rust-diagnostics.h: Remove old comment.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/checks/errors/rust-feature-gate.cc
gcc/rust/rust-diagnostics.h

index 3b9f457d4e16ab4f58b3d5140c6da117492a3aba..dbc3ef2997cd78866122bcb293252ca483b6ba37 100644 (file)
@@ -2349,9 +2349,7 @@ TokenCollector::visit (MacroInvocation &invocation)
   push (Rust::Token::make (EXCLAM, UNDEF_LOCATION));
   visit (data.get_delim_tok_tree ());
   if (invocation.has_semicolon ())
-    {
-      push (Rust::Token::make (SEMICOLON, UNDEF_LOCATION));
-    }
+    push (Rust::Token::make (SEMICOLON, UNDEF_LOCATION));
 }
 
 void
index 0f6b6c06582613277305677ac54fcd8ea9ad642d..be4ea7882358b76559c541297a877e0607918c12 100644 (file)
@@ -168,4 +168,4 @@ FeatureGate::visit (AST::ExternalTypeItem &item)
        "extern types are experimental");
 }
 
-} // namespace Rust
\ No newline at end of file
+} // namespace Rust
index a2546348cfe91e74142ccdce960b89a384e112aa..a38dd0d42a81dca894f9681c700a34ceb8f48853 100644 (file)
@@ -221,8 +221,6 @@ struct Error
 // rust_debug uses normal printf formatting, not GCC diagnostic formatting.
 #define rust_debug(...) rust_debug_loc (UNDEF_LOCATION, __VA_ARGS__)
 
-// rust_sorry_at wraps GCC diagnostic "sorry_at" to accept "Location" instead of
-// "location_t"
 #define rust_sorry_at(location, ...) sorry_at (location, __VA_ARGS__)
 
 void