diff options
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 5817a0e..785af81 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1871,13 +1871,12 @@ public: return *this; } - static ASTFragment create_empty () { return ASTFragment ({}); } static ASTFragment create_error () { return ASTFragment ({}, true); } std::vector<SingleASTNode> &get_nodes () { return nodes; } bool is_error () const { return fragment_is_error; } - bool should_expand () const { return !is_error () && !nodes.empty (); } + bool should_expand () const { return !is_error (); } std::unique_ptr<Expr> take_expression_fragment () { |