commit | 9fb0aedb1e3a736380bf4f22ec8dabd0f4056b90 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Mon Aug 27 10:23:12 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Mon Aug 27 10:23:12 2018 -0700 |
tree | 01f8f316d06c7e5ad212895691e9c8a5af84d838 | |
parent | 378175c5c716d7e862408bda9abe03b5a822c571 [diff] |
Implement expr_no_struct
diff --git a/src/expr.rs b/src/expr.rs index d8e1fec..0e37800 100644 --- a/src/expr.rs +++ b/src/expr.rs
@@ -1098,7 +1098,9 @@ } #[cfg(feature = "full")] - named2!(expr_no_struct -> Expr, shim!(ambiguous_expr, AllowStruct(false), AllowBlock(true))); + fn expr_no_struct(input: ParseStream) -> Result<Expr> { + ambiguous_expr(input, AllowStruct(false), AllowBlock(true)) + } // Parse an arbitrary expression. #[cfg(feature = "full")]