public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] lex: Remove system includes
@ 2022-10-27 18:55 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-27 18:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5206aede5326ebd327d7f32c46faacbc6d07942e

commit 5206aede5326ebd327d7f32c46faacbc6d07942e
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Wed Oct 5 09:28:02 2022 +0200

    lex: Remove system includes

Diff:
---
 gcc/rust/lex/rust-lex.cc   | 5 ++---
 gcc/rust/lex/rust-token.cc | 3 +--
 gcc/rust/lex/rust-token.h  | 7 +------
 3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc
index 70e6b50209f..82949f5fe5f 100644
--- a/gcc/rust/lex/rust-lex.cc
+++ b/gcc/rust/lex/rust-lex.cc
@@ -16,10 +16,9 @@
 // along with GCC; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+#include "rust-system.h"
 #include "rust-lex.h"
-
-#include "rust-system.h"      // for rust_assert and rust_unreachable
-#include "rust-diagnostics.h" // for rust_error_at
+#include "rust-diagnostics.h"
 #include "rust-linemap.h"
 #include "rust-session-manager.h"
 #include "safe-ctype.h"
diff --git a/gcc/rust/lex/rust-token.cc b/gcc/rust/lex/rust-token.cc
index 68313c20b1c..6aef8cc1c67 100644
--- a/gcc/rust/lex/rust-token.cc
+++ b/gcc/rust/lex/rust-token.cc
@@ -17,8 +17,7 @@
 // <http://www.gnu.org/licenses/>.
 
 #include "rust-token.h"
-
-#include "rust-diagnostics.h" // for error_at
+#include "rust-diagnostics.h"
 
 namespace Rust {
 // Hackily defined way to get token description for enum value using x-macros
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h
index 3fa46a2cebe..8f5be33a804 100644
--- a/gcc/rust/lex/rust-token.h
+++ b/gcc/rust/lex/rust-token.h
@@ -19,15 +19,10 @@
 #ifndef RUST_TOKEN_H
 #define RUST_TOKEN_H
 
+#include "rust-system.h"
 #include "rust-linemap.h"
 #include "rust-codepoint.h"
 
-// order: config, system, coretypes, input
-#include "config.h"
-#include "system.h"
-#include "coretypes.h"
-#include "input.h"
-
 namespace Rust {
 // "Primitive core types" in Rust - the different int and float types, as well
 // as some others

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-27 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27 18:55 [gcc/devel/rust/master] lex: Remove system includes Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).