From: Jakub Dupak <dev@jakubdupak.com>
Replace direct usage of system headers.
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-dump.cc: Use rust-system.h
* checks/errors/borrowck/rust-bir-dump.h (RUST_BIR_DUMP_H): Use rust-system.h
* checks/errors/borrowck/rust-bir-place.h (RUST_BIR_PLACE_H): Use rust-system.h
* checks/errors/borrowck/rust-function-collector.h: Use rust-system.h
* rust-system.h: Use rust-system.h
* typecheck/rust-hir-type-check.h: Use rust-system.h
* typecheck/rust-tyty-subst.cc: Use rust-system.h
* typecheck/rust-tyty-subst.h: Use rust-system.h
* typecheck/rust-tyty.h: Use rust-system.h
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
---
gcc/rust/checks/errors/borrowck/rust-bir-dump.cc | 2 +-
gcc/rust/checks/errors/borrowck/rust-bir-dump.h | 3 +--
gcc/rust/checks/errors/borrowck/rust-bir-place.h | 1 -
gcc/rust/checks/errors/borrowck/rust-function-collector.h | 3 +--
gcc/rust/rust-system.h | 3 +++
gcc/rust/typecheck/rust-hir-type-check.h | 3 +--
gcc/rust/typecheck/rust-tyty-subst.cc | 2 +-
gcc/rust/typecheck/rust-tyty-subst.h | 3 +--
gcc/rust/typecheck/rust-tyty.h | 3 +--
9 files changed, 10 insertions(+), 13 deletions(-)
@@ -1,4 +1,4 @@
-#include <numeric>
+#include "rust-system.h"
#include "rust-bir-dump.h"
#include "rust-diagnostics.h"
@@ -19,8 +19,7 @@
#ifndef RUST_BIR_DUMP_H
#define RUST_BIR_DUMP_H
-#include <ostream>
-#include <utility>
+#include "rust-system.h"
#include "rust-bir-place.h"
#include "rust-bir-visitor.h"
#include "rust-bir.h"
@@ -19,7 +19,6 @@
#ifndef RUST_BIR_PLACE_H
#define RUST_BIR_PLACE_H
-#include <limits>
#include "rust-mapping-common.h"
#include "rust-system.h"
#include "rust-tyty.h"
@@ -22,8 +22,7 @@
#include "rust-hir-item.h"
#include "rust-hir-visitor.h"
#include "rust-hir.h"
-
-#include <vector>
+#include "rust-system.h"
namespace Rust {
@@ -36,6 +36,7 @@
#include <map>
#include <set>
#include <vector>
+#include <stack>
#include <sstream>
#include <string>
#include <deque>
@@ -45,6 +46,8 @@
#include <fstream>
#include <array>
#include <algorithm>
+#include <limits>
+#include <numeric>
// Rust frontend requires C++11 minimum, so will have unordered_map and set
#include <unordered_map>
@@ -25,8 +25,7 @@
#include "rust-autoderef.h"
#include "rust-tyty-region.h"
#include "rust-tyty-variance-analysis.h"
-
-#include <stack>
+#include "rust-system.h"
namespace Rust {
namespace Resolver {
@@ -18,7 +18,7 @@
#include "rust-tyty-subst.h"
-#include <utility>
+#include "rust-system.h"
#include "rust-tyty.h"
#include "rust-hir-type-check.h"
#include "rust-substitution-mapper.h"
@@ -24,8 +24,7 @@
#include "rust-hir-full-decls.h"
#include "rust-tyty-bounds.h"
#include "rust-tyty-region.h"
-
-#include <optional.h>
+#include "optional.h"
namespace Rust {
namespace TyTy {
@@ -27,8 +27,7 @@
#include "rust-tyty-util.h"
#include "rust-tyty-subst.h"
#include "rust-tyty-region.h"
-
-#include <limits>
+#include "rust-system.h"
namespace Rust {