aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar/items/nominal.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-10 18:27:38 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-10 18:27:38 +0000
commitf96312b8360040086a236279515d178bf26ffb14 (patch)
tree8a90b787c2aa3377dc5eea4baa024a2d9442dbd3 /crates/ra_syntax/src/grammar/items/nominal.rs
parent1a7a68de165fe89457e130de90e50a90c0b0d3c2 (diff)
parentafdb56990212eb385e77fff9a6316a16e50bd1d4 (diff)
Merge #486
486: Fix handling of where clauses in tuple structs r=matklad a=DJMcNab Originally reported by @max-frai on discord. As I was writing this, I was wondering if there's any way we can compare our test suite against libsyntax (i.e. check that it similarly fails/succeeds). Any ideas? Co-authored-by: DJMcNab <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/grammar/items/nominal.rs')
-rw-r--r--crates/ra_syntax/src/grammar/items/nominal.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar/items/nominal.rs b/crates/ra_syntax/src/grammar/items/nominal.rs
index 8d02ad555..495462ca7 100644
--- a/crates/ra_syntax/src/grammar/items/nominal.rs
+++ b/crates/ra_syntax/src/grammar/items/nominal.rs
@@ -29,6 +29,10 @@ pub(super) fn struct_def(p: &mut Parser, kind: SyntaxKind) {
29 L_CURLY => named_field_def_list(p), 29 L_CURLY => named_field_def_list(p),
30 L_PAREN if kind == STRUCT_KW => { 30 L_PAREN if kind == STRUCT_KW => {
31 pos_field_list(p); 31 pos_field_list(p);
32 // test tuple_struct_where
33 // struct Test<T>(T) where T: Clone;
34 // struct Test<T>(T);
35 type_params::opt_where_clause(p);
32 p.expect(SEMI); 36 p.expect(SEMI);
33 } 37 }
34 _ if kind == STRUCT_KW => { 38 _ if kind == STRUCT_KW => {