aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorRaiki Tamura <tamaron1203@gmail.com>2023-08-08 02:08:38 +0900
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:32 +0100
commit10da25cd81461c9e18a2b4e6c44a83a74e6c0e2d (patch)
tree283b683d8e8ea5d64150a8389ca6a3a67dad0cc4 /gcc/rust/rust-session-manager.cc
parentb620e1d19f19325afe1d49ee8e2b8f6782a19761 (diff)
downloadgcc-10da25cd81461c9e18a2b4e6c44a83a74e6c0e2d.zip
gcc-10da25cd81461c9e18a2b4e6c44a83a74e6c0e2d.tar.gz
gcc-10da25cd81461c9e18a2b4e6c44a83a74e6c0e2d.tar.bz2
gccrs: Add punycode encoding to v0 mangling
gcc/rust/ChangeLog: * backend/rust-mangle.cc (v0_add_identifier): Added punycode encoding (v0_mangle_item): Likewise. * lex/rust-lex.cc (assert_source_content): Change type (test_buffer_input_source): Change type (test_file_input_source): Change type * resolve/rust-ast-resolve-toplevel.h: fix typo * rust-session-manager.cc (Session::load_extern_crate): fix typo * util/rust-canonical-path.h: fix typo * util/rust-hir-map.cc (NodeMapping::get_error): fix typo (Mappings::Mappings): fix typo * util/rust-mapping-common.h (UNKNOWN_CREATENUM): fix typo (UNKNOWN_CRATENUM): Change 0 to UINT32_MAX Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index bb6cf4c..1c5d729 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -979,7 +979,7 @@ NodeId
Session::load_extern_crate (const std::string &crate_name, location_t locus)
{
// has it already been loaded?
- CrateNum found_crate_num = UNKNOWN_CREATENUM;
+ CrateNum found_crate_num = UNKNOWN_CRATENUM;
bool found = mappings->lookup_crate_name (crate_name, found_crate_num);
if (found)
{