[COMMITTED 024/141] gccrs: ast: Add Path::is_lang_item()
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Mon Mar 24 12:44:07 GMT 2025
From: Arthur Cohen <arthur.cohen@embecosm.com>
gcc/rust/ChangeLog:
* ast/rust-path.h: New function.
---
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 2a76acc48c3..c2537034b61 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 ()
{
--
2.45.2
More information about the Gcc-rust
mailing list