diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-10-05 09:28:02 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-10-27 12:15:11 +0200 |
commit | 5206aede5326ebd327d7f32c46faacbc6d07942e (patch) | |
tree | a882cbfa9d8fe8039637f7844737e8b621df7d3a /gcc | |
parent | c5454530ec4fe8b3c5f2f08191aece5544dec2d2 (diff) | |
download | gcc-5206aede5326ebd327d7f32c46faacbc6d07942e.zip gcc-5206aede5326ebd327d7f32c46faacbc6d07942e.tar.gz gcc-5206aede5326ebd327d7f32c46faacbc6d07942e.tar.bz2 |
lex: Remove system includes
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/lex/rust-lex.cc | 5 | ||||
-rw-r--r-- | gcc/rust/lex/rust-token.cc | 3 | ||||
-rw-r--r-- | 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 70e6b50..82949f5 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 68313c2..6aef8cc 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 3fa46a2..8f5be33 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 |