]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: rust-imports: Fix last few mentions of Go.
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 16 Mar 2023 12:13:22 +0000 (13:13 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:21:14 +0000 (18:21 +0100)
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.

gcc/rust/metadata/rust-imports.cc

index 4ecdcecec544aac9d3ffbc63d5f5371215511b98..5894ec823a02021a8dc7c42729f5ac2bf0cd645b 100644 (file)
@@ -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)