]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust included headers in rust-lang.cc
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 26 May 2025 21:11:19 +0000 (17:11 -0400)
committerPhilip Herron <philip.herron@embecosm.com>
Tue, 27 May 2025 08:06:47 +0000 (08:06 +0000)
This was upstreamed as part of ea34614225d4d255e58f63206eb12178b870cb4c
but never made it to our downstream repo. I've added Philip as a
co-author, since he wrote the upstream commit.

gcc/rust/ChangeLog:

* rust-lang.cc: Remove direct inclusion of "config.h" and
"system.h", move inclusion of "rust-system.h" upwards.

Co-authored-by: Philip Herron <herron.philip@googlemail.com>
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/rust-lang.cc

index 2776333db59f066b7d82754888d6e3ba0feb0b00..9409d8141ac4d9932da31f0790f611a6dc407487 100644 (file)
@@ -16,9 +16,8 @@
 // along with GCC; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
+#include "rust-system.h"
 #include "rust-diagnostics.h"
-#include "config.h"
-#include "system.h"
 #include "coretypes.h"
 #include "target.h"
 #include "tree.h"
@@ -66,7 +65,6 @@
  * e.g. HIR conversion.
  */
 
-#include "rust-system.h"
 #include "rust-session-manager.h"
 #include "rust-tree.h"