diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 14:54:06 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 6f0e06c04f9278057a927f45a72db18602bd0f6e (patch) | |
tree | 124a7c9d9ae2d0aedc2971c77db4c3dbb9dd05f9 /gcc/rust/hir | |
parent | 395aab37873f0f988450f31323e7748ae500745c (diff) | |
download | gcc-6f0e06c04f9278057a927f45a72db18602bd0f6e.zip gcc-6f0e06c04f9278057a927f45a72db18602bd0f6e.tar.gz gcc-6f0e06c04f9278057a927f45a72db18602bd0f6e.tar.bz2 |
Change return type to optional in get_lang_item
Wrap the function's return type with an optional.
gcc/rust/ChangeLog:
* typecheck/rust-autoderef.cc: Adapt calling code to new return type.
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
Likewise.
(TypeCheckExpr::resolve_operator_overload): Likewise.
* typecheck/rust-tyty-bounds.cc (TypeBoundsProbe::assemble_builtin_candidate):
Likewise.
* typecheck/rust-tyty.cc (ClosureType::setup_fn_once_output): Likewise.
* util/rust-hir-map.cc (Mappings::get_lang_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/rust/hir')
0 files changed, 0 insertions, 0 deletions