https://gcc.gnu.org/g:57a1b013474f7724e547d03d8da4f4f179a005a4

commit 57a1b013474f7724e547d03d8da4f4f179a005a4
Author: Owen Avery <powerboat9.ga...@gmail.com>
Date:   Mon May 26 17:11:19 2025 -0400

    Adjust included headers in rust-lang.cc
    
    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.phi...@googlemail.com>
    Signed-off-by: Owen Avery <powerboat9.ga...@gmail.com>

Diff:
---
 gcc/rust/rust-lang.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 2776333db59f..9409d8141ac4 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -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"

Reply via email to