diff options
Diffstat (limited to 'gcc/rust/util/rust-hir-map.h')
-rw-r--r-- | gcc/rust/util/rust-hir-map.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/rust/util/rust-hir-map.h b/gcc/rust/util/rust-hir-map.h index 49bafb2..06d117d 100644 --- a/gcc/rust/util/rust-hir-map.h +++ b/gcc/rust/util/rust-hir-map.h @@ -30,6 +30,7 @@ #include "rust-privacy-common.h" #include "libproc_macro_internal/proc_macro.h" #include "rust-proc-macro.h" +#include "optional.h" namespace Rust { namespace Analysis { @@ -294,12 +295,12 @@ public: void insert_attribute_proc_macros (CrateNum num, std::vector<AttributeProcMacro> macros); - bool lookup_derive_proc_macros (CrateNum num, - std::vector<CustomDeriveProcMacro> ¯os); - bool lookup_bang_proc_macros (CrateNum num, - std::vector<BangProcMacro> ¯os); - bool lookup_attribute_proc_macros (CrateNum num, - std::vector<AttributeProcMacro> ¯os); + tl::optional<std::vector<CustomDeriveProcMacro> &> + lookup_derive_proc_macros (CrateNum num); + tl::optional<std::vector<BangProcMacro> &> + lookup_bang_proc_macros (CrateNum num); + tl::optional<std::vector<AttributeProcMacro> &> + lookup_attribute_proc_macros (CrateNum num); void insert_derive_proc_macro_def (NodeId id, CustomDeriveProcMacro macro); void insert_bang_proc_macro_def (NodeId id, BangProcMacro macro); |