diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-04 04:10:08 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 06bc336010c68d09061533a0f717ce2938236cb4 (patch) | |
tree | 62aea6b5e693c50adde107f04fde6518780688a7 /gcc/rust/hir | |
parent | f13cb854c049ff9bb2ea0911ddc1b1b6282ffe88 (diff) | |
download | gcc-06bc336010c68d09061533a0f717ce2938236cb4.zip gcc-06bc336010c68d09061533a0f717ce2938236cb4.tar.gz gcc-06bc336010c68d09061533a0f717ce2938236cb4.tar.bz2 |
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>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions