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] ast: Remove system include
Date: Thu, 27 Oct 2022 18:55:17 +0000 (GMT)	[thread overview]
Message-ID: <20221027185517.F272B384A078@sourceware.org> (raw)

https://gcc.gnu.org/g:8d3ed915652fb170a12c24dfb283b804611adc8e

commit 8d3ed915652fb170a12c24dfb283b804611adc8e
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Tue Oct 4 18:10:26 2022 +0200

    ast: Remove system include

Diff:
---
 gcc/rust/ast/rust-ast-full-test.cc | 6 +-----
 gcc/rust/ast/rust-macro.h          | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/gcc/rust/ast/rust-ast-full-test.cc b/gcc/rust/ast/rust-ast-full-test.cc
index cac816d2545..1e8a93d462f 100644
--- a/gcc/rust/ast/rust-ast-full-test.cc
+++ b/gcc/rust/ast/rust-ast-full-test.cc
@@ -17,11 +17,7 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
-// FIXME: This does not work on Windows
-#include <string>
-#include <unistd.h>
-#include <memory>
-
+#include "rust-system.h"
 #include "rust-ast-full.h"
 #include "rust-diagnostics.h"
 #include "rust-ast-visitor.h"
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h
index a02c216450b..fe95ce13312 100644
--- a/gcc/rust/ast/rust-macro.h
+++ b/gcc/rust/ast/rust-macro.h
@@ -19,10 +19,10 @@
 #ifndef RUST_AST_MACRO_H
 #define RUST_AST_MACRO_H
 
+#include "rust-system.h"
 #include "rust-ast.h"
 #include "rust-ast-fragment.h"
 #include "rust-location.h"
-#include <string>
 
 namespace Rust {
 namespace AST {

                 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=20221027185517.F272B384A078@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).