]> git.ipfire.org Git - thirdparty/gcc.git/commit
Change lookup_macro_invocation's return type
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Sat, 4 May 2024 01:21:27 +0000 (03:21 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Fri, 17 May 2024 15:28:30 +0000 (15:28 +0000)
commit435f227c2501d1d5a72905d30a5a90848be11481
tree2309125e98d0292cefc4a38bcf5819862726cb57
parentc3493829b74bade43a6a9bc83520066c9a3c9e09
Change lookup_macro_invocation's return type

Wrap the function's return type within an optional and remove the out
reference argument.

gcc/rust/ChangeLog:

* expand/rust-macro-expand.cc (MacroExpander::expand_invoc): Adapt
the function call to match its new prototype.
* resolve/rust-early-name-resolver-2.0.cc (Early::insert_once):
Likewise.
(Early::visit): Likewise.
* resolve/rust-early-name-resolver.cc (EarlyNameResolver::visit):
Likewise.
* util/rust-hir-map.cc (Mappings::lookup_macro_invocation): Change the
function's return type.
* util/rust-hir-map.h: Update the function's prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-macro-expand.cc
gcc/rust/resolve/rust-early-name-resolver-2.0.cc
gcc/rust/resolve/rust-early-name-resolver.cc
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h