aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-08-09 12:55:37 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-08-10 09:34:35 +0000
commite4da7e5d6be1e9f61d5d93a870c51dd626d0a7e3 (patch)
tree78a243d892e23a7b397d763d3689dcdaa96e3d8c /gcc
parentcd9a6e3bb581025f1729577730d7cfb44d62a1d5 (diff)
downloadgcc-e4da7e5d6be1e9f61d5d93a870c51dd626d0a7e3.zip
gcc-e4da7e5d6be1e9f61d5d93a870c51dd626d0a7e3.tar.gz
gcc-e4da7e5d6be1e9f61d5d93a870c51dd626d0a7e3.tar.bz2
Basic formatting/comment fixes
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-ast-collector.cc4
-rw-r--r--gcc/rust/checks/errors/rust-feature-gate.cc2
-rw-r--r--gcc/rust/rust-diagnostics.h2
3 files changed, 2 insertions, 6 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc
index 3b9f457..dbc3ef2 100644
--- a/gcc/rust/ast/rust-ast-collector.cc
+++ b/gcc/rust/ast/rust-ast-collector.cc
@@ -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
diff --git a/gcc/rust/checks/errors/rust-feature-gate.cc b/gcc/rust/checks/errors/rust-feature-gate.cc
index 29bc2fb..8e940db 100644
--- a/gcc/rust/checks/errors/rust-feature-gate.cc
+++ b/gcc/rust/checks/errors/rust-feature-gate.cc
@@ -168,4 +168,4 @@ FeatureGate::visit (AST::ExternalTypeItem &item)
"extern types are experimental");
}
-} // namespace Rust \ No newline at end of file
+} // namespace Rust
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h
index 8c1378b..d947212 100644
--- a/gcc/rust/rust-diagnostics.h
+++ b/gcc/rust/rust-diagnostics.h
@@ -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