Skip to content

Commit

Permalink
Clean up some system includes
Browse files Browse the repository at this point in the history
System includes shall use rust-system header instead.

gcc/rust/ChangeLog:

	* ast/rust-stmt.h: Remove stdlib include and use rust-system instead.
	* backend/rust-compile-expr.cc: Likewise.
	* backend/rust-mangle-legacy.cc: Likewise.
	* backend/rust-mangle-v0.cc: Likewise.
	* hir/rust-hir-dump.cc: Likewise.
	* typecheck/rust-hir-type-check-type.cc: Likewise.
	* typecheck/rust-tyty.cc: Likewise.
	* typecheck/rust-tyty.h: Likewise.
	* util/rust-common.h: Likewise.
	* util/rust-token-converter.cc: Likewise.
	* util/rust-token-converter.h: Likewise.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Nov 22, 2024
1 parent 0cb51bb commit b3a8a1a
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gcc/rust/ast/rust-stmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "rust-ast.h"
#include "rust-path.h"
#include "rust-expr.h"
#include <memory>
#include "rust-system.h"

namespace Rust {
namespace AST {
Expand Down
1 change: 0 additions & 1 deletion gcc/rust/backend/rust-compile-expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "convert.h"
#include "print-tree.h"
#include "rust-system.h"
#include <functional>

namespace Rust {
namespace Compile {
Expand Down
1 change: 0 additions & 1 deletion gcc/rust/backend/rust-mangle-legacy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "rust-unicode.h"
#include "rust-diagnostics.h"
#include "rust-system.h"
#include <sstream>

namespace Rust {
namespace Compile {
Expand Down
1 change: 0 additions & 1 deletion gcc/rust/backend/rust-mangle-v0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "rust-unicode.h"
#include "rust-punycode.h"
#include "rust-compile-type.h"
#include <sstream>

namespace Rust {
namespace Compile {
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/hir/rust-hir-dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include "rust-hir-path.h"
#include "rust-hir-type.h"
#include "rust-hir.h"
#include <string>
#include "rust-attribute-values.h"
#include "tree/rust-hir-expr.h"
#include "rust-system.h"

namespace Rust {
namespace HIR {
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/typecheck/rust-hir-type-check-type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "rust-mapping-common.h"
#include "rust-substitution-mapper.h"
#include "rust-type-util.h"
#include <functional>
#include "rust-system.h"

namespace Rust {
namespace Resolver {
Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/typecheck/rust-tyty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "rust-hir-type-bounds.h"

#include "options.h"
#include <functional>
#include "rust-system.h"

namespace Rust {
namespace TyTy {
Expand Down
2 changes: 0 additions & 2 deletions gcc/rust/typecheck/rust-tyty.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include "rust-system.h"
#include "rust-hir.h"

#include <limits>

namespace Rust {

namespace Resolver {
Expand Down
1 change: 0 additions & 1 deletion gcc/rust/util/rust-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef RUST_COMMON
#define RUST_COMMON
#include "rust-system.h"
#include <string>

namespace Rust {

Expand Down
3 changes: 1 addition & 2 deletions gcc/rust/util/rust-token-converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#include "rust-token-converter.h"
#include "bi-map.h"
#include "line-map.h"

#include <string>
#include "rust-system.h"

namespace Rust {

Expand Down
2 changes: 1 addition & 1 deletion gcc/rust/util/rust-token-converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef RUST_TOKEN_CONVERTER_H
#define RUST_TOKEN_CONVERTER_H

#include <vector>
#include "rust-system.h"
#include "rust-token.h"
#include "libproc_macro_internal/proc_macro.h"

Expand Down

0 comments on commit b3a8a1a

Please sign in to comment.