diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-02 13:44:10 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:24 +0100 |
commit | 16bf7555b6f4ab0d588ec26b7b1a9001ae59928f (patch) | |
tree | d2e3729bb71e62a831c7aa4061592b06169226e7 /gcc/diagnostic-buffer.h | |
parent | 6dce8a479a288a64ffa87f3e3549f1dc6900b527 (diff) | |
download | gcc-16bf7555b6f4ab0d588ec26b7b1a9001ae59928f.zip gcc-16bf7555b6f4ab0d588ec26b7b1a9001ae59928f.tar.gz gcc-16bf7555b6f4ab0d588ec26b7b1a9001ae59928f.tar.bz2 |
gccrs: Change lookup_hir_extern_item return type
Wrap the return type with an optional and make the return type a pair
with the parent hid.
gcc/rust/ChangeLog:
* backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile):
Adapt code around new return type.
* checks/errors/rust-const-checker.cc (ConstChecker::check_function_call):
Likewise.
* checks/errors/rust-unsafe-checker.cc (UnsafeChecker::check_use_of_static):
Likewise.
(UnsafeChecker::check_function_call): Likewise.
* typecheck/rust-type-util.cc (query_type): Likewise.
* util/rust-hir-map.cc (Mappings::insert_hir_extern_item): Likewise.
(Mappings::lookup_hir_extern_item): Change 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/diagnostic-buffer.h')
0 files changed, 0 insertions, 0 deletions