public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/rust/master] lex: Remove system includes
Date: Thu, 27 Oct 2022 18:55:45 +0000 (GMT)	[thread overview]
Message-ID: <20221027185545.B4F3B384641B@sourceware.org> (raw)

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

                 reply	other threads:[~2022-10-27 18:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221027185545.B4F3B384641B@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).