]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Change lookup_ast_item's return type
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Sat, 4 May 2024 02:10:08 +0000 (04:10 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:27 +0000 (16:35 +0100)
commitba56cdb52711990414a50dd52c853cefcdd23f53
treed738b8c45e78231f8ae2c131774de65d3ee96c7a
parent3c1653b7b01cfad21fc1768dbfb6972e108bac30
gccrs: Change lookup_ast_item's return type

Wrap the function's return type within an optional.

gcc/rust/ChangeLog:

* metadata/rust-export-metadata.cc (ExportContext::emit_trait):
Adapt call site to the new return type.
(ExportContext::emit_function): Likewise.
(ExportContext::emit_macro): Likewise.
* util/rust-hir-map.cc (Mappings::lookup_ast_item): Change the
function's return type.
* util/rust-hir-map.h: Update the function's prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/metadata/rust-export-metadata.cc
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h