diff options
Diffstat (limited to 'gcc/rust/resolve')
-rw-r--r-- | gcc/rust/resolve/rust-early-name-resolver.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/rust/resolve/rust-early-name-resolver.cc b/gcc/rust/resolve/rust-early-name-resolver.cc index d70f9ca..5447084 100644 --- a/gcc/rust/resolve/rust-early-name-resolver.cc +++ b/gcc/rust/resolve/rust-early-name-resolver.cc @@ -558,16 +558,6 @@ EarlyNameResolver::visit (AST::StructPattern &) void EarlyNameResolver::visit (AST::TupleStructPattern &pattern) { - if (!pattern.has_items ()) - { - rich_location rich_locus (line_table, pattern.get_locus ()); - rich_locus.add_fixit_replace ( - "function calls are not allowed in patterns"); - rust_error_at ( - rich_locus, ErrorCode::E0164, - "expected tuple struct or tuple variant, found associated function"); - return; - } pattern.get_items ()->accept_vis (*this); } |