]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: import: Load procedural macros into external crate
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 15 Jun 2023 14:37:07 +0000 (16:37 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:58 +0000 (18:55 +0100)
commit37451ad09f7edc081700909208f90b9eea1eb592
tree782acd785fe91c296dd67924377139a2bafbc1fb
parentdd73caa394b1c08f11c7af92e323838f9eaa0348
gccrs: import: Load procedural macros into external crate

Load the procedural macro array into the external crate structure.

gcc/rust/ChangeLog:

* metadata/rust-imports.cc (Import::try_package_in_directory):
Add call to load macros before loading metadatas.
* expand/rust-proc-macro.cc: Return empty vector instead of
panicking on error.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-proc-macro.cc
gcc/rust/metadata/rust-imports.cc