[gcc r14-7575] gccrs: ast: Rename rust-ast-tokenstream file

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 17:41:56 GMT 2024


https://gcc.gnu.org/g:82387cd8a0e70c9ab791ebccf26290907cf0d217

commit r14-7575-g82387cd8a0e70c9ab791ebccf26290907cf0d217
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Tue May 2 16:02:55 2023 +0200

    gccrs: ast: Rename rust-ast-tokenstream file
    
    The file does not contain any TokenStream declaration anymore and thus
    should be named more appropriately.
    
    gcc/rust/ChangeLog:
    
            * Make-lang.in: Change file name.
            * ast/rust-ast-tokenstream.cc: Moved to...
            * ast/rust-ast-collector.cc: ...here.
            * ast/rust-ast-tokenstream.h: Moved to...
            * ast/rust-ast-collector.h: ...here.
            * rust-session-manager.cc: Change header name.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/rust/Make-lang.in                                           | 2 +-
 gcc/rust/ast/{rust-ast-tokenstream.cc => rust-ast-collector.cc} | 2 +-
 gcc/rust/ast/{rust-ast-tokenstream.h => rust-ast-collector.h}   | 0
 gcc/rust/rust-session-manager.cc                                | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in
index 8ef50b24594..fdfc4841395 100644
--- a/gcc/rust/Make-lang.in
+++ b/gcc/rust/Make-lang.in
@@ -78,7 +78,7 @@ GRS_OBJS = \
     rust/rust-pattern.o \
     rust/rust-ast-fragment.o \
     rust/rust-ast-dump.o \
-    rust/rust-ast-tokenstream.o \
+    rust/rust-ast-collector.o \
     rust/rust-hir-dump.o \
     rust/rust-session-manager.o \
     rust/rust-compile.o \
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-collector.cc
similarity index 99%
rename from gcc/rust/ast/rust-ast-tokenstream.cc
rename to gcc/rust/ast/rust-ast-collector.cc
index 41db77b788b..908d1517449 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.cc
+++ b/gcc/rust/ast/rust-ast-collector.cc
@@ -15,7 +15,7 @@
 // You should have received a copy of the GNU General Public License
 // along with GCC; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
-#include "rust-ast-tokenstream.h"
+#include "rust-ast-collector.h"
 #include "libproc_macro/proc_macro.h"
 
 namespace Rust {
diff --git a/gcc/rust/ast/rust-ast-tokenstream.h b/gcc/rust/ast/rust-ast-collector.h
similarity index 100%
rename from gcc/rust/ast/rust-ast-tokenstream.h
rename to gcc/rust/ast/rust-ast-collector.h
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index e85527ee4ba..860abab2932 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -35,7 +35,7 @@
 #include "rust-lint-unused-var.h"
 #include "rust-hir-dump.h"
 #include "rust-ast-dump.h"
-#include "rust-ast-tokenstream.h"
+#include "rust-ast-collector.h"
 #include "rust-export-metadata.h"
 #include "rust-imports.h"
 #include "rust-extern-crate.h"


More information about the Gcc-cvs mailing list