https://gcc.gnu.org/g:1b745da3ae583e853af0e453400c674a6363e72b

commit r15-8747-g1b745da3ae583e853af0e453400c674a6363e72b
Author: Arthur Cohen <arthur.co...@embecosm.com>
Date:   Wed Jan 22 16:52:26 2025 +0000

    gccrs: 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 2a76acc48c3d..c2537034b61b 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 ()
   {

Reply via email to