[gcc/devel/rust/master] ast: Add Path::is_lang_item()
Thomas Schwinge
tschwinge@gcc.gnu.org
Wed Mar 26 14:09:06 GMT 2025
https://gcc.gnu.org/g:9f2c6de83509ae6ca1679a66b0b1be158386fc4e
commit 9f2c6de83509ae6ca1679a66b0b1be158386fc4e
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Wed Jan 22 16:52:26 2025 +0000
ast: Add Path::is_lang_item()
gcc/rust/ChangeLog:
* ast/rust-path.h: New function.
Diff:
---
gcc/rust/ast/rust-path.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h
index c5afc8f883d4..0ecd822e50ee 100644
--- a/gcc/rust/ast/rust-path.h
+++ b/gcc/rust/ast/rust-path.h
@@ -622,6 +622,8 @@ public:
std::string as_string () const override;
+ bool is_lang_item () const { return kind == Kind::LangItem; }
+
// TODO: this seems kinda dodgy
std::vector<PathExprSegment> &get_segments ()
{
More information about the Gcc-cvs
mailing list