From patchwork Wed Apr 5 14:03:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 79660 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp345675vqo; Wed, 5 Apr 2023 07:22:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YZqCRAOnfC7Fzo3771xhLlZKOSWURCMd6B6rjyVc5a3vfMSu3l3ORpHsnjD+IvFJpdTt5E X-Received: by 2002:a17:907:6ea5:b0:8de:acd1:90f0 with SMTP id sh37-20020a1709076ea500b008deacd190f0mr3871027ejc.3.1680704520368; Wed, 05 Apr 2023 07:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680704520; cv=none; d=google.com; s=arc-20160816; b=OLRiMc8v7H9wbhdzzrEc+TM4qDlVb+R4DVF4IACRYrf+ygG5CzKDdIwEuA0nMko1UL i6Pkk9GegcXTJEVYyfzvMdtjY5nNT7FSbkHBXpn8Dytu7T/4nWwupuaGgZuYaEmW2ONo fvw0NKWQWHourVpTictlxhkrmBj9EEVtgCG0qdP0tk3SONN9lp2Cqp4qrVaNu4XdqT7/ w92anvWrDI+snkbTMeCS8qpcTy+cppKnn7JK+tqGL7WopZqc8SftLU5GbBiwSpQsMQaV GpAdFYlU1lRYnTl2OrG01T0o75nDmoHW9wZtfY/Afj80+pFeOqZJk5Yf2HBLXRevLpQF fgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=ubMvXqxUmwYakqie+HrSxx0MSHjdKuyL1C8BLM9Vecc=; b=iM3YP+9X8gg0aFKgtSOSDJdFj0BcYy0lw6dTGQeBLqdfp/A/fXFbcBWcrxp5+cVWSO ydBF8eVsV+ond/rYIFsTp70VerjecQWuTzmiSiVUs8rpG4wEn23xnGmreTdWOPGsWbFd 2/4uLBjHmAQqugSAZ1NTObKEtO2rXXz7rz5X9Sh0GKA/0yIgvjExEZxjawhl0gE28ihl c5jc/hZV9PuWqOvx4U8nywvL/SnbBiWIg7ofWcMlO2o/rgoR0+8RkcFnzisKWPhYBJFj NurS9uFOhh4pfEQ5llXJ8zHjXrsZX8CMOaFdnaadZrXy8j1EdX9Rx6AQ07pyNkY3e5GY DxxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=HxxlVZJd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hq8-20020a1709073f0800b00934d983a240si293234ejc.280.2023.04.05.07.22.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:22:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=HxxlVZJd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 387A7384F00E for ; Wed, 5 Apr 2023 14:10:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 7D648385B519 for ; Wed, 5 Apr 2023 14:05:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7D648385B519 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x32f.google.com with SMTP id j18-20020a05600c1c1200b003ee5157346cso23815348wms.1 for ; Wed, 05 Apr 2023 07:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1680703542; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ubMvXqxUmwYakqie+HrSxx0MSHjdKuyL1C8BLM9Vecc=; b=HxxlVZJd+ntWCfjeUFmbF2mOCYv5io7sYfF2yiqFpCVBfROHlfaOcgqIK6GHONFRXL wnHPfLifMizEoFYAyaiGLAvr0/Y/u2vkJC/Q14qo68XnwydpmYi/ZXqFTr7aA2NEjmMr PwFhkq/T/sqKfz4+gJrlcaps5fV7O5ziEZuhwLSdMaNTPP77ljoQNwaekVd2oH+zaLJN dKW8N5wNholhDRMJXMnuzICQUa2ruupRfMFcUnDKsxew7GpCGga13anCNox6Gn2f+WqQ abIpRMTaZB9LErkPrAsoFjz7Yo+D4afPO4MXjCRz78ky1TQFO1GjEvqhuNkIwpneSqaN uVMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680703542; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ubMvXqxUmwYakqie+HrSxx0MSHjdKuyL1C8BLM9Vecc=; b=ogiuAQ92hQPeewuVg8owB0PgeiRbwPpI5OV0Bq0dBLKTpE8ljDuFMIPBnt2EHGm4ch dw6+1NrhBi3QADoVGfPIhZfebo8aeudftgCvG2NqqVr76j74B7Cor6Dbs3CJh9RvcsJv wKXYuU7AgspxiEfpgaKn238EyuOJGLgkSTXWZl5XvzyByI720lELtYTLuLZPA5PlIpC6 qp5+vS27G88/pcggksf6QXNNiPy/UwA62/J9aPvSryM0kWKMQE7uDFIaoPy9FhCEgUQL m6voviD6U/uLSR7b8fad3XDJ/80khewXS7qukaqqP5bjWcaF9cKSfAad08flhJr5BsOf PEPQ== X-Gm-Message-State: AAQBX9df8eFUblINIRybFXnXNsX3qTy/b9fypd/M73/FweikSwd/pFoN nWhivxgWd2Jra4OLlnNg5wIjSqkhKyKprRpvjA== X-Received: by 2002:a7b:cd15:0:b0:3ef:6ae7:8994 with SMTP id f21-20020a7bcd15000000b003ef6ae78994mr5041352wmj.22.1680703541730; Wed, 05 Apr 2023 07:05:41 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id ay8-20020a05600c1e0800b003edddae1068sm2330150wmb.9.2023.04.05.07.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 07:05:41 -0700 (PDT) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Abdul Rafey Subject: [committed 20/88] gccrs: moved operator.h to util/rust-operators.h Date: Wed, 5 Apr 2023 16:03:04 +0200 Message-Id: <20230405140411.3016563-21-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230405140411.3016563-1-arthur.cohen@embecosm.com> References: <20230405140411.3016563-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762346423411045462?= X-GMAIL-MSGID: =?utf-8?q?1762346423411045462?= From: Abdul Rafey gcc/rust/ChangeLog: * ast/rust-ast.cc: Fix include list. * ast/rust-expr.h: Likewise. * hir/tree/rust-hir-expr.h: Likewise. * rust-backend.h: Likewise. * util/rust-lang-item.h: Likewise. * operator.h: Moved to... * util/rust-operators.h: ...here. Signed-off-by: Abdul Rafey --- gcc/rust/ast/rust-ast.cc | 2 +- gcc/rust/ast/rust-expr.h | 2 +- gcc/rust/hir/tree/rust-hir-expr.h | 2 +- gcc/rust/rust-backend.h | 2 +- gcc/rust/util/rust-lang-item.h | 2 +- gcc/rust/{operator.h => util/rust-operators.h} | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename gcc/rust/{operator.h => util/rust-operators.h} (100%) diff --git a/gcc/rust/ast/rust-ast.cc b/gcc/rust/ast/rust-ast.cc index 280f59ffb16..60a9f01e17f 100644 --- a/gcc/rust/ast/rust-ast.cc +++ b/gcc/rust/ast/rust-ast.cc @@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see #include "rust-session-manager.h" #include "rust-lex.h" #include "rust-parse.h" -#include "operator.h" +#include "rust-operators.h" /* Compilation unit used for various AST-related functions that would make * the headers too long if they were defined inline and don't receive any diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 34bc6993ab6..3ed1885d5af 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -3,7 +3,7 @@ #include "rust-ast.h" #include "rust-path.h" -#include "operator.h" +#include "rust-operators.h" namespace Rust { namespace AST { diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h index cc884420bef..bf103516800 100644 --- a/gcc/rust/hir/tree/rust-hir-expr.h +++ b/gcc/rust/hir/tree/rust-hir-expr.h @@ -23,7 +23,7 @@ #include "rust-ast-full-decls.h" #include "rust-hir.h" #include "rust-hir-path.h" -#include "operator.h" +#include "rust-operators.h" namespace Rust { namespace HIR { diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index 01c5fc40e8c..076104f3a40 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -26,7 +26,7 @@ #include "rust-location.h" #include "rust-linemap.h" #include "rust-diagnostics.h" -#include "operator.h" +#include "util/rust-operators.h" #include "tree.h" // Pointers to these types are created by the backend, passed to the diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index ea0c91aa5f2..29c364bad61 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -17,7 +17,7 @@ // . #include "rust-system.h" -#include "operator.h" +#include "rust-operators.h" namespace Rust { namespace Analysis { diff --git a/gcc/rust/operator.h b/gcc/rust/util/rust-operators.h similarity index 100% rename from gcc/rust/operator.h rename to gcc/rust/util/rust-operators.h