public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] ast: Remove system include
@ 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: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 {

^ 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] ast: Remove system include 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).