diff options
author | Geoffry Song <[email protected]> | 2019-10-03 07:38:03 +0100 |
---|---|---|
committer | Geoffry Song <[email protected]> | 2019-10-03 08:39:52 +0100 |
commit | 9638adaa40d22adcf9b4002d95a13977c0f1436f (patch) | |
tree | 9a6b2a477a371499f7a9012b26bf639acd801cb6 /crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs | |
parent | e1c367595139f109fb6f53811bed7d67a384793e (diff) |
Fix parsing of block expressions in "forbid_structs" contexts.
Forbidding block expressions entirely is too strict; instead, we should only
forbid them in contexts where we are parsing an optional RHS (i.e. the RHS of a
range expression).
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs index c39fe8e68..e7b7cfc6b 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs +++ b/crates/ra_syntax/test_data/parser/inline/ok/0080_postfix_range.rs | |||
@@ -1 +1,5 @@ | |||
1 | fn foo() { let x = 1..; } | 1 | fn foo() { |
2 | let x = 1..; | ||
3 | match 1.. { _ => () }; | ||
4 | match a.b()..S { _ => () }; | ||
5 | } | ||