From: Pierre-Emmanuel Patry Date: Tue, 2 May 2023 14:02:55 +0000 (+0200) Subject: gccrs: ast: Rename rust-ast-tokenstream file X-Git-Tag: basepoints/gcc-15~2564 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82387cd8a0e70c9ab791ebccf26290907cf0d217;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index 8ef50b24594a..fdfc48413956 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 41db77b788ba..908d1517449d 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 // . -#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 e85527ee4ba9..860abab2932a 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"