aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-buffer.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-03 16:30:06 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:25 +0100
commit01e2a53cb84f959f400af79172843e4bc906ff9a (patch)
tree8c45bdcd3e71474fabfb416b5d5e89915c627901 /gcc/diagnostic-buffer.h
parentf7031e6a2cefc31f38604189ff3d98af2321aebb (diff)
downloadgcc-01e2a53cb84f959f400af79172843e4bc906ff9a.zip
gcc-01e2a53cb84f959f400af79172843e4bc906ff9a.tar.gz
gcc-01e2a53cb84f959f400af79172843e4bc906ff9a.tar.bz2
gccrs: Change lookup_hir_implitem return type
Wrap the return type within an optional. Now return the parent id within a pair instead of taking an out reference. gcc/rust/ChangeLog: * backend/rust-compile-item.cc (CompileItem::visit): Change call site to accept new return type. * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): Likewise. * backend/rust-mangle-v0.cc (v0_path): Likewise. * checks/errors/rust-unsafe-checker.cc (UnsafeChecker::visit): Likewise. * checks/lints/rust-lint-marklive.cc (MarkLive::go): Likewise. (MarkLive::visit): Likewise. * typecheck/rust-type-util.cc (query_type): Likewise. * util/rust-hir-map.cc (Mappings::insert_hir_implitem): Likewise. (Mappings::lookup_hir_implitem): 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