aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-03-16 13:13:22 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:21:14 +0100
commit4cb51d2b020d4621ef550fbc658aa1da474b2c96 (patch)
treeef6733be9b16a570f41214d0ccac24757a50fbbb
parent31361479ae800839dc1d5db0839a7655d263aa2f (diff)
downloadgcc-4cb51d2b020d4621ef550fbc658aa1da474b2c96.zip
gcc-4cb51d2b020d4621ef550fbc658aa1da474b2c96.tar.gz
gcc-4cb51d2b020d4621ef550fbc658aa1da474b2c96.tar.bz2
gccrs: rust-imports: Fix last few mentions of Go.
Some were still present from the original adaptation of the Go metadata imports and exports. gcc/rust/ChangeLog: * metadata/rust-imports.cc (add_search_path): Change `Go` -> `Rust`. (Import::try_package_in_directory): Likewise. (Import::find_export_data): Likewise.
-rw-r--r--gcc/rust/metadata/rust-imports.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rust/metadata/rust-imports.cc b/gcc/rust/metadata/rust-imports.cc
index 4ecdcec..5894ec8 100644
--- a/gcc/rust/metadata/rust-imports.cc
+++ b/gcc/rust/metadata/rust-imports.cc
@@ -58,7 +58,7 @@ add_search_path (const std::string &path)
// When using a search path, we apply each of these transformations at
// each entry on the search path before moving on to the next entry.
-// If the file exists, but does not contain any Go export data, we
+// If the file exists, but does not contain any Rust export data, we
// stop; we do not keep looking for another file with the same name
// later in the search path.
@@ -170,7 +170,8 @@ Import::try_package_in_directory (const std::string &filename,
close (fd);
- rust_error_at (location, "%s exists but does not contain any Go export data",
+ rust_error_at (location,
+ "%s exists but does not contain any Rust export data",
found_filename.c_str ());
return NULL;
@@ -244,7 +245,7 @@ Import::find_export_data (const std::string &filename, int fd,
if (c < len)
return NULL;
- // Check for a file containing nothing but Go export data.
+ // Check for a file containing nothing but Rust export data.
// if (memcmp (buf, Export::cur_magic, Export::magic_len) == 0
// || memcmp (buf, Export::v1_magic, Export::magic_len) == 0
// || memcmp (buf, Export::v2_magic, Export::magic_len) == 0)