diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-04-25 15:28:32 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:24 +0100 |
commit | c4c46f5fd7fa26b3bd5cf653a66ffa9cbb8cb24e (patch) | |
tree | 44f2cbc5d5c8e7bfd84d76c34796b9f447ac1cef /gcc/diagnostic-buffer.h | |
parent | 7146c1b6f5edfd7d0b92685d81c81fa1ec40ceab (diff) | |
download | gcc-c4c46f5fd7fa26b3bd5cf653a66ffa9cbb8cb24e.zip gcc-c4c46f5fd7fa26b3bd5cf653a66ffa9cbb8cb24e.tar.gz gcc-c4c46f5fd7fa26b3bd5cf653a66ffa9cbb8cb24e.tar.bz2 |
gccrs: Change return type for lookup_hir_impl_block
Change the return type to an optiona. This allows to differentiate
between missing hir impl block and null pointers.
gcc/rust/ChangeLog:
* typecheck/rust-type-util.cc (query_type): Change call to the function
in order to accomodate the new return type.
* util/rust-hir-map.cc (Mappings::lookup_hir_impl_block): Change the
function's return type to an optional.
* 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/diagnostic-buffer.h')
0 files changed, 0 insertions, 0 deletions