diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-16 13:13:22 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-03-21 21:57:02 +0000 |
commit | 43d1fc6c8f03e6578434d70c3da55a8910c821e0 (patch) | |
tree | b4bdcd52e62de1bd1d8b71783126143989ed4505 /gcc | |
parent | 9024d99f5b765e95c324f653bda75edbb7155d07 (diff) | |
download | gcc-43d1fc6c8f03e6578434d70c3da55a8910c821e0.zip gcc-43d1fc6c8f03e6578434d70c3da55a8910c821e0.tar.gz gcc-43d1fc6c8f03e6578434d70c3da55a8910c821e0.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/metadata/rust-imports.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rust/metadata/rust-imports.cc b/gcc/rust/metadata/rust-imports.cc index 6fe2277..acfec3e 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) |