]> git.ipfire.org Git - thirdparty/gcc.git/commit
Change crate_num_to_nodeid return type
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 25 Apr 2024 14:15:42 +0000 (16:15 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Fri, 17 May 2024 15:28:30 +0000 (15:28 +0000)
commitdc06ff16b4b06b6bb36ec9a5e4755288d34ef8f8
treeabd38555b331bd9d9f2150255d73071aff8076e8
parent5f1b593393c4ee8d7ea118277bca638189f5b326
Change crate_num_to_nodeid return type

Change the function's return type to an optional.

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-toplevel.h: Adapt the code to the new
return type.
* rust-session-manager.cc (Session::load_extern_crate): Likewise.
* util/rust-hir-map.cc (Mappings::crate_num_to_nodeid): Change the
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/resolve/rust-ast-resolve-toplevel.h
gcc/rust/rust-session-manager.cc
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h