Skip to content

Commit

Permalink
ast: Add Path::is_lang_item()
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Jan 22, 2025
1 parent e413acc commit 19b0e5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/rust/ast/rust-path.h
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@ class Path : public Pattern

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 ()
{
Expand Down

0 comments on commit 19b0e5f

Please sign in to comment.