aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-02 12:33:20 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-05-17 15:28:30 +0000
commit310081b7d629e4640d0b962f727ac4249bd51e25 (patch)
tree2dd5835e8ffddee0c5b9b13911a0f9b73edf306a /gcc/rust/backend/rust-compile-resolve-path.cc
parenta83bc198e19a99d9f266dbb77deb5a7a5200f53f (diff)
downloadgcc-310081b7d629e4640d0b962f727ac4249bd51e25.zip
gcc-310081b7d629e4640d0b962f727ac4249bd51e25.tar.gz
gcc-310081b7d629e4640d0b962f727ac4249bd51e25.tar.bz2
Change return type of lookup trait defid functions.
Wrap the return type with an optional. gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::resolve_method_address): Update code around lookup return type. * typecheck/rust-tyty-bounds.cc (TypeCheckBase::get_predicate_from_bound): Likewise. * typecheck/rust-tyty.cc (ClosureType::setup_fn_once_output): Likewise. * util/rust-hir-map.cc (Mappings::insert_defid_mapping): Likewise. (Mappings::lookup_trait_item_defid): Update return type with an optional. (Mappings::get_lang_item): Likewise. * util/rust-hir-map.h: Update the functions prototype. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions