diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 19:39:02 -0400 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-07-27 14:18:45 +0000 |
commit | d62a388625d03c208082944e5cfff52ffa772eac (patch) | |
tree | 33c24d7e90a5edb3b8233c63e2457faa99354d2e /gcc/rust/resolve/rust-name-resolver.cc | |
parent | d76d64cb06e2627eeaf0d545a2dd51857f383f68 (diff) | |
download | gcc-d62a388625d03c208082944e5cfff52ffa772eac.zip gcc-d62a388625d03c208082944e5cfff52ffa772eac.tar.gz gcc-d62a388625d03c208082944e5cfff52ffa772eac.tar.bz2 |
Replace Location with location_t in unnamed function parameters
gcc/rust/ChangeLog:
* backend/rust-compile-base.h: Replace Location with location_t.
* metadata/rust-imports.h: Likewise.
* resolve/rust-name-resolver.cc: Likewise.
* resolve/rust-name-resolver.h: Likewise.
* rust-backend.h: Likewise.
* rust-gcc.cc: Likewise.
* rust-gcc.h: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-name-resolver.cc')
-rw-r--r-- | gcc/rust/resolve/rust-name-resolver.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/rust/resolve/rust-name-resolver.cc b/gcc/rust/resolve/rust-name-resolver.cc index 067e39b..477646c 100644 --- a/gcc/rust/resolve/rust-name-resolver.cc +++ b/gcc/rust/resolve/rust-name-resolver.cc @@ -30,7 +30,7 @@ void Rib::insert_name ( const CanonicalPath &path, NodeId id, location_t locus, bool shadow, ItemType type, - std::function<void (const CanonicalPath &, NodeId, Location)> dup_cb) + std::function<void (const CanonicalPath &, NodeId, location_t)> dup_cb) { auto it = path_mappings.find (path); bool path_already_exists = it != path_mappings.end (); @@ -141,7 +141,7 @@ void Scope::insert ( const CanonicalPath &ident, NodeId id, location_t locus, bool shadow, Rib::ItemType type, - std::function<void (const CanonicalPath &, NodeId, Location)> dup_cb) + std::function<void (const CanonicalPath &, NodeId, location_t)> dup_cb) { peek ()->insert_name (ident, id, locus, shadow, type, dup_cb); } @@ -151,7 +151,7 @@ Scope::insert (const CanonicalPath &ident, NodeId id, location_t locus, Rib::ItemType type) { peek ()->insert_name (ident, id, locus, true, type, - [] (const CanonicalPath &, NodeId, Location) -> void { + [] (const CanonicalPath &, NodeId, location_t) -> void { }); } @@ -368,7 +368,8 @@ Resolver::insert_builtin_types (Rib *r) builtin->as_string ()); r->insert_name (builtin_path, builtin->get_node_id (), BUILTINS_LOCATION, false, Rib::ItemType::Type, - [] (const CanonicalPath &, NodeId, Location) -> void {}); + [] (const CanonicalPath &, NodeId, location_t) -> void { + }); } } |